mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-17 02:31:19 +01:00
Opening chest with right click is bypassing lockette ([private]) access restriction. I don't know, imo chesthop should check event.isCancelled(), but adding this option to config is lesser invasive solution.
This commit is contained in:
parent
7213ca0fe4
commit
1ce4191586
@ -65,7 +65,7 @@ public class playerInteract implements Listener {
|
||||
|
||||
if (action == Action.RIGHT_CLICK_BLOCK) event.setCancelled(true);
|
||||
|
||||
if (uSign.canAccess(player, sign)) {
|
||||
if (Config.getBoolean(Property.ALLOW_SIGN_CHEST_OPEN) && uSign.canAccess(player, sign)) {
|
||||
if (action != Action.LEFT_CLICK_BLOCK || !Config.getBoolean(Property.ALLOW_LEFT_CLICK_DESTROYING)) showChestGUI(player, block);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user