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
commitb0586abc67eaa970a2e36b285acd81c7bb3d572b (patch)
tree27fd499d5d5e3ce67dd9926bb80e97a99bf81bb2
parent41235b6ee1224dcf88093d29bd2797193c217bfa (diff)
downloadEssentials-b0586abc67eaa970a2e36b285acd81c7bb3d572b.tar
Essentials-b0586abc67eaa970a2e36b285acd81c7bb3d572b.tar.gz
Essentials-b0586abc67eaa970a2e36b285acd81c7bb3d572b.tar.lz
Essentials-b0586abc67eaa970a2e36b285acd81c7bb3d572b.tar.xz
Essentials-b0586abc67eaa970a2e36b285acd81c7bb3d572b.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())
{