mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +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
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
if (!player.isOnline()) {
|
||||||
player.setScoreboard(oldScoreboard);
|
player.setScoreboard(oldScoreboard);
|
||||||
|
}
|
||||||
|
|
||||||
ScoreboardManager.clearPendingTask(player.getName());
|
ScoreboardManager.clearPendingTask(player.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user