diff --git a/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java b/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java index 07aac1025..e5b9c6684 100644 --- a/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java +++ b/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java @@ -206,8 +206,8 @@ public class PlayerListener implements Listener { && QuickShop.getPermissionManager().hasPermission(p, "quickshop.create.sell") && p.getGameMode() != GameMode.CREATIVE) { if (e.useInteractedBlock() == Result.DENY - || plugin.getConfig().getBoolean("shop.sneak-to-create") && !p.isSneaking()){ - /*|| !plugin.getShopManager().canBuildShop(p, b, e.getBlockFace())*/ + || plugin.getConfig().getBoolean("shop.sneak-to-create") && !p.isSneaking() + || !plugin.getShopManager().canBuildShop(p, b, e.getBlockFace())){ // As of the new checking system, most plugins will tell the // player why they can't create a shop there. // So telling them a message would cause spam etc. diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java b/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java index 9df657711..4dbe03924 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java @@ -111,10 +111,6 @@ public class ShopManager { return false; } } - if (!plugin.getPermissionChecker().canBuild(p, b)) { - Util.debugLog("PermissionChecker canceled shop creation"); - return false; - } ShopPreCreateEvent spce = new ShopPreCreateEvent(p, b.getLocation()); Bukkit.getPluginManager().callEvent(spce); if (Util.fireCancellableEvent(spce)) { @@ -632,6 +628,7 @@ public class ShopManager { Util.debugLog("Calling for protection check..."); // Fix openInv compatiable issue + if (!bypassProtectionChecks) { plugin.getCompatibilityTool().toggleProtectionListeners(false, p); if (!plugin.getPermissionChecker().canBuild(p, info.getLocation())) {