Avoid possible IllegalStateException if player has logged out before

this processes.
This commit is contained in:
GJ 2013-04-30 10:02:28 -04:00
parent 88f43d9a91
commit 08be78fa35

View File

@ -17,7 +17,10 @@ public class ScoreboardChangeTask extends BukkitRunnable {
@Override
public void run() {
player.setScoreboard(oldScoreboard);
if (!player.isOnline()) {
player.setScoreboard(oldScoreboard);
}
ScoreboardManager.clearPendingTask(player.getName());
}
}