From 2a4c26ee693d66edf175e631952e8d32fa003613 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 17 Nov 2011 16:20:31 +0100 Subject: [PATCH] Prevent that sign protection in EssProtect can be circumvented by placing signs. --- .../essentials/protect/EssentialsProtectBlockListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java index 8717825b3..7f96750e4 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java @@ -85,7 +85,9 @@ public class EssentialsProtectBlockListener extends BlockListener && user.isAuthorized("essentials.protect")) { protect.add(blockPlaced); - if (prot.getSettingBool(ProtectConfig.protect_against_signs)) + if (prot.getSettingBool(ProtectConfig.protect_against_signs) + && event.getBlockAgainst().getType() != Material.SIGN_POST + && event.getBlockAgainst().getType() != Material.WALL_SIGN) { protect.add(event.getBlockAgainst()); }