diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-02 13:16:44 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-02 13:16:44 +0200 |
commit | ae053dea5850b12c1f10d505c0631f7ffd561345 (patch) | |
tree | e6406152bf5b26d2850e68a7d6517bed396c5610 | |
parent | 335c9f37ab8685b115bbf756938b4e4602492958 (diff) | |
download | Essentials-ae053dea5850b12c1f10d505c0631f7ffd561345.tar Essentials-ae053dea5850b12c1f10d505c0631f7ffd561345.tar.gz Essentials-ae053dea5850b12c1f10d505c0631f7ffd561345.tar.lz Essentials-ae053dea5850b12c1f10d505c0631f7ffd561345.tar.xz Essentials-ae053dea5850b12c1f10d505c0631f7ffd561345.zip |
Prevent signs created by plugins like SignColours
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java index 592c61231..dfa1ed052 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java @@ -88,6 +88,11 @@ public class SignBlockListener extends BlockListener for (Signs signs : Signs.values()) { final EssentialsSign sign = signs.getSign(); + if (event.getLine(0).equalsIgnoreCase(sign.getSuccessName())) + { + event.setCancelled(true); + return; + } if (event.getLine(0).equalsIgnoreCase(sign.getTemplateName()) && !sign.onSignCreate(event, ess)) { |