summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-17 16:20:31 +0100
committersnowleo <schneeleo@gmail.com>2011-11-17 16:20:31 +0100
commit2a4c26ee693d66edf175e631952e8d32fa003613 (patch)
tree661fb13d4ebea99bad77aa8d2b9da017f8013645 /EssentialsProtect/src/com
parent81431548262ab8bdb5e0b362cdcda703ac21722e (diff)
downloadEssentials-2a4c26ee693d66edf175e631952e8d32fa003613.tar
Essentials-2a4c26ee693d66edf175e631952e8d32fa003613.tar.gz
Essentials-2a4c26ee693d66edf175e631952e8d32fa003613.tar.lz
Essentials-2a4c26ee693d66edf175e631952e8d32fa003613.tar.xz
Essentials-2a4c26ee693d66edf175e631952e8d32fa003613.zip
Prevent that sign protection in EssProtect can be circumvented by placing signs.
Diffstat (limited to 'EssentialsProtect/src/com')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java4
1 files changed, 3 insertions, 1 deletions
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());
}