mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2024-12-23 05:17:33 +01:00
Don't allow WorldGuard access when sneaking
Sneaking doesn't open a shop chest anymore.
This commit is contained in:
parent
3678738048
commit
1e02539aab
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user