summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials
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
commit54389e2f9c36d0e9186cc5d8a36fec5f94859484 (patch)
tree73082f176455675db1958e5aaccbcb2dda342bfc /EssentialsProtect/src/com/earth2me/essentials
parent311f73e9a298d01441f127591023f89cbbd8f16e (diff)
downloadEssentials-54389e2f9c36d0e9186cc5d8a36fec5f94859484.tar
Essentials-54389e2f9c36d0e9186cc5d8a36fec5f94859484.tar.gz
Essentials-54389e2f9c36d0e9186cc5d8a36fec5f94859484.tar.lz
Essentials-54389e2f9c36d0e9186cc5d8a36fec5f94859484.tar.xz
Essentials-54389e2f9c36d0e9186cc5d8a36fec5f94859484.zip
Prevent that sign protection in EssProtect can be circumvented by placing signs.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials')
-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());
}