diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-17 16:20:31 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-17 16:20:31 +0100 |
commit | 54389e2f9c36d0e9186cc5d8a36fec5f94859484 (patch) | |
tree | 73082f176455675db1958e5aaccbcb2dda342bfc /EssentialsProtect/src/com/earth2me/essentials | |
parent | 311f73e9a298d01441f127591023f89cbbd8f16e (diff) | |
download | Essentials-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.java | 4 |
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()); } |