mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-30 14:03:21 +01:00
Fix Admin Shops
This commit is contained in:
parent
24eb1b1e19
commit
2ff945bbe6
@ -123,7 +123,7 @@ public class PlayerInteract implements Listener {
|
|||||||
OfflinePlayer owner = Bukkit.getOfflinePlayer(uuid);
|
OfflinePlayer owner = Bukkit.getOfflinePlayer(uuid);
|
||||||
|
|
||||||
// check if player exists in economy
|
// check if player exists in economy
|
||||||
if(owner == null || owner.getName() == null || !VaultListener.getProvider().hasAccount(owner))
|
if(!ChestShopSign.isAdminShop(sign) && (owner == null || owner.getName() == null || !VaultListener.getProvider().hasAccount(owner)))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
Action buy = Properties.REVERSE_BUTTONS ? LEFT_CLICK_BLOCK : RIGHT_CLICK_BLOCK;
|
Action buy = Properties.REVERSE_BUTTONS ? LEFT_CLICK_BLOCK : RIGHT_CLICK_BLOCK;
|
||||||
|
Loading…
Reference in New Issue
Block a user