summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Schepp <schneeleo@gmail.com>2012-07-28 00:26:04 +0300
committerAlexander Schepp <schneeleo@gmail.com>2012-07-28 00:26:04 +0300
commit310786f0fed0f759b233faf0823c8852ac1ce3e6 (patch)
tree37d9edb2f46ffe6cf3a4ef870ca73beb6f6fd466
parentad2387ff5b07f6693260f3281572ea99edaaff8a (diff)
downloadEssentials-310786f0fed0f759b233faf0823c8852ac1ce3e6.tar
Essentials-310786f0fed0f759b233faf0823c8852ac1ce3e6.tar.gz
Essentials-310786f0fed0f759b233faf0823c8852ac1ce3e6.tar.lz
Essentials-310786f0fed0f759b233faf0823c8852ac1ce3e6.tar.xz
Essentials-310786f0fed0f759b233faf0823c8852ac1ce3e6.zip
Prevent that Essentials breaks other plugins signs
-rw-r--r--Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java
index c159510c7..162457baf 100644
--- a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java
+++ b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java
@@ -75,8 +75,8 @@ public class SignBlockListener implements Listener
return false;
}
- @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onSignChange(final SignChangeEvent event)
+ @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
+ public void onSignChange2(final SignChangeEvent event)
{
if (ess.getSettings().areSignsDisabled())
{
@@ -88,6 +88,15 @@ public class SignBlockListener implements Listener
{
event.setLine(i, Util.formatString(user, "essentials.signs", event.getLine(i)));
}
+ }
+
+ @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
+ public void onSignChange(final SignChangeEvent event)
+ {
+ if (ess.getSettings().areSignsDisabled())
+ {
+ return;
+ }
for (Signs signs : Signs.values())
{