From ce71e714702b3feddee7522222cdacf263848fc6 Mon Sep 17 00:00:00 2001 From: Maik E Date: Thu, 21 Dec 2023 00:17:41 +0100 Subject: [PATCH] Update 'isShopMember' function in ChestShop class Updated 'isShopMember' function in the ChestShop.java class to check if a player is not only an accessor but also an owner. This modification optimizes and improves sign management; making it more convenient to update existing signs and manage admin shops. --- src/main/java/com/Acrobot/ChestShop/Plugins/ChestShop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Plugins/ChestShop.java b/src/main/java/com/Acrobot/ChestShop/Plugins/ChestShop.java index 29496c297..d7ab55c0e 100644 --- a/src/main/java/com/Acrobot/ChestShop/Plugins/ChestShop.java +++ b/src/main/java/com/Acrobot/ChestShop/Plugins/ChestShop.java @@ -66,6 +66,6 @@ private static boolean canBeProtected(Block block) { } private static boolean isShopMember(Player player, Sign sign) { - return ChestShopSign.isAccessor(player, sign); + return ChestShopSign.isOwner(player, sign) || ChestShopSign.isAccessor(player, sign); } }