mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Avoid possible IllegalStateException if player has logged out before
this processes.
This commit is contained in:
parent
88f43d9a91
commit
08be78fa35
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user