Skip to content

Commit

Permalink
Update 'isShopMember' function in ChestShop class
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Feli499 committed Dec 20, 2023
1 parent 7bea581 commit ce71e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/Acrobot/ChestShop/Plugins/ChestShop.java
Expand Up @@ -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);
}
}

0 comments on commit ce71e71

Please sign in to comment.