diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java index b6eb522e..e50944cc 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java @@ -121,6 +121,7 @@ public class WorldConfiguration { public int maxRegionCountPerPlayer; public boolean antiWolfDumbness; public boolean signChestProtection; + public boolean disableSignChestProtectionCheck; public boolean removeInfiniteStacks; public boolean disableCreatureCropTrampling; public boolean disablePlayerCropTrampling; @@ -328,6 +329,7 @@ private void loadConfiguration() { disableDeathMessages = getBoolean("player-damage.disable-death-messages", false); signChestProtection = getBoolean("chest-protection.enable", false); + disableSignChestProtectionCheck = getBoolean("chest-protection.disable-off-check", false); disableCreatureCropTrampling = getBoolean("crops.disable-creature-trampling", false); disablePlayerCropTrampling = getBoolean("crops.disable-player-trampling", false); diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java index b0a1b6e3..ecd9889d 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardBlockListener.java @@ -611,7 +611,7 @@ public void onSignChange(SignChangeEvent event) { player.sendMessage(ChatColor.YELLOW + "A chest or double chest above is now protected."); } - } else { + } else if (!wcfg.disableSignChestProtectionCheck) { if (event.getLine(0).equalsIgnoreCase("[Lock]")) { player.sendMessage(ChatColor.RED + "WorldGuard's sign chest protection is disabled.");