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:
Aiquen 2012-04-06 21:24:11 +03:00
parent 7213ca0fe4
commit 1ce4191586
1 changed files with 1 additions and 1 deletions

View File

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