mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-25 00:31:43 +01:00
Prevent that Essentials breaks other plugins signs
This commit is contained in:
parent
41235b6ee1
commit
b0586abc67
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user