Merge pull request #14 from L4BORG/master

Fix Admin Shops
This commit is contained in:
Dan Mulloy 2016-11-10 16:21:25 -05:00 committed by GitHub
commit a79aa9d733
1 changed files with 1 additions and 1 deletions

View File

@ -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;