mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-18 00:25:32 +01:00
Don't unregister all listeners.
This commit is contained in:
parent
8e3ee8576e
commit
b5dd0fc671
@ -78,7 +78,7 @@ public class EssentialsPlayerListener implements Listener
|
||||
{
|
||||
if (!ess.getSettings().cancelAfkOnMove() && !ess.getSettings().getFreezeAfkPlayers())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
|
||||
if (ess.getSettings().isDebug())
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
User user = ess.getUser(event.getPlayer());
|
||||
@ -107,7 +107,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -132,7 +132,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -195,7 +195,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -224,7 +224,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -255,7 +255,7 @@ public class SignBlockListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ public class SignEntityListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ public class SignEntityListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ public class SignPlayerListener implements Listener
|
||||
{
|
||||
if (ess.getSettings().areSignsDisabled())
|
||||
{
|
||||
event.getHandlers().unregister(ess);
|
||||
event.getHandlers().unregister(this);
|
||||
return;
|
||||
}
|
||||
if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_AIR)
|
||||
|
Loading…
Reference in New Issue
Block a user