Fix issues with admin shops, ops and creative mode (Fixes #168)

This commit is contained in:
Phoenix616 2018-09-26 17:02:13 +01:00
parent 96b5a675d6
commit b30688b635
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}