Prevent that Essentials breaks other plugins signs

This commit is contained in:
Alexander Schepp 2012-07-28 00:26:04 +03:00
parent 41235b6ee1
commit b0586abc67

View file

@ -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())
{