diff --git a/com/Acrobot/ChestShop/Signs/RestrictedSign.java b/com/Acrobot/ChestShop/Signs/RestrictedSign.java index cd70751..cd25e8f 100644 --- a/com/Acrobot/ChestShop/Signs/RestrictedSign.java +++ b/com/Acrobot/ChestShop/Signs/RestrictedSign.java @@ -74,7 +74,7 @@ public class RestrictedSign implements Listener { Sign sign = event.getSign(); - if (isRestricted(sign) && !canAccess(sign, event.getClient())) { + if (isRestrictedShop(sign) && !canAccess(sign, event.getClient())) { event.setCancelled(SHOP_IS_RESTRICTED); } } @@ -132,9 +132,13 @@ public class RestrictedSign implements Listener { } - public static boolean canDestroy(Player p, Sign sign) { + public static boolean canDestroy(Player player, Sign sign) { + if (Permission.has(player, ADMIN)) { + return true; + } + Sign shopSign = getAssociatedSign(sign); - return ChestShopSign.canAccess(p, shopSign); + return ChestShopSign.canAccess(player, shopSign); } public static Sign getAssociatedSign(Sign restricted) { diff --git a/plugin.yml b/plugin.yml index 9208520..150b0a5 100644 --- a/plugin.yml +++ b/plugin.yml @@ -2,7 +2,7 @@ name: ChestShop main: com.Acrobot.ChestShop.ChestShop -version: 3.50t0040 +version: 3.50t0041 #for CButD dev-url: http://dev.bukkit.org/server-mods/chestshop/