Don't unregister all listeners.

This commit is contained in:
KHobbits 2012-12-31 12:15:51 +00:00
parent 8e3ee8576e
commit b5dd0fc671
4 changed files with 12 additions and 12 deletions

View File

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

View File

@ -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;
}

View File

@ -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;
}

View File

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