From b30688b6353c6afe4aa80d75c99663ef7ef8c859 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Wed, 26 Sep 2018 17:02:13 +0100 Subject: [PATCH] Fix issues with admin shops, ops and creative mode (Fixes #168) --- .../Acrobot/ChestShop/Listeners/Player/PlayerInteract.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java index ac6efa8..2049007 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Player/PlayerInteract.java @@ -102,8 +102,10 @@ public class PlayerInteract implements Listener { return; } - if (canAccess) { - if (!Properties.ALLOW_SIGN_CHEST_OPEN || player.isSneaking() || player.isInsideVehicle() || player.getGameMode() == GameMode.CREATIVE) { + if (canAccess && !ChestShopSign.isAdminShop(sign)) { + if (!Properties.ALLOW_SIGN_CHEST_OPEN + || player.isSneaking() || player.isInsideVehicle() + || (Properties.IGNORE_CREATIVE_MODE && player.getGameMode() == GameMode.CREATIVE)) { return; }