From 2ff945bbe6a13b9fca4e1db41e788e7b59fee2e9 Mon Sep 17 00:00:00 2001 From: L4BORG Date: Thu, 10 Nov 2016 03:17:27 +0100 Subject: [PATCH] Fix Admin Shops --- .../com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java index 2643ae4..eb36854 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java @@ -123,7 +123,7 @@ public class PlayerInteract implements Listener { OfflinePlayer owner = Bukkit.getOfflinePlayer(uuid); // 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; Action buy = Properties.REVERSE_BUTTONS ? LEFT_CLICK_BLOCK : RIGHT_CLICK_BLOCK;