This commit is contained in:
Xephi59 2015-06-11 01:16:58 +02:00
parent de2961b754
commit bfc2fbd546

View File

@ -888,7 +888,9 @@ public class AuthMePlayerListener implements Listener {
player.setAllowFlight(limbo.isFlying());
player.setFlying(limbo.isFlying());
}
if (limbo.getTimeoutTaskId() != null)
limbo.getTimeoutTaskId().cancel();
if (limbo.getMessageTaskId() != null)
limbo.getMessageTaskId().cancel();
LimboCache.getInstance().deleteLimboPlayer(name);
if (playerBackup.doesCacheExist(player)) {
@ -975,7 +977,9 @@ public class AuthMePlayerListener implements Listener {
player.setAllowFlight(limbo.isFlying());
player.setFlying(limbo.isFlying());
}
if (limbo.getTimeoutTaskId() != null)
limbo.getTimeoutTaskId().cancel();
if (limbo.getMessageTaskId() != null)
limbo.getMessageTaskId().cancel();
LimboCache.getInstance().deleteLimboPlayer(name);
if (this.playerBackup.doesCacheExist(player)) {