From 1e02539aab30019e63f59996887d09a62625b0b5 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 1 Aug 2018 16:17:24 +0200 Subject: [PATCH] Don't allow WorldGuard access when sneaking Sneaking doesn't open a shop chest anymore. --- .../de/epiceric/shopchest/listeners/WorldGuardListener.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/listeners/WorldGuardListener.java b/src/main/java/de/epiceric/shopchest/listeners/WorldGuardListener.java index 142bd99..804fcc3 100644 --- a/src/main/java/de/epiceric/shopchest/listeners/WorldGuardListener.java +++ b/src/main/java/de/epiceric/shopchest/listeners/WorldGuardListener.java @@ -52,10 +52,6 @@ public class WorldGuardListener implements Listener { if (shop.getVendor().getUniqueId().equals(player.getUniqueId()) && shop.getShopType() != Shop.ShopType.ADMIN) { return true; } - - if (!shop.getVendor().getUniqueId().equals(player.getUniqueId()) && player.isSneaking()) { - return player.hasPermission(Permissions.OPEN_OTHER); - } } if (ClickType.getPlayerClickType(player) != null) {