fix: changelog display after connection lost
This commit is contained in:
parent
c00cb8a8e9
commit
e1e6c4cf45
1 changed files with 8 additions and 2 deletions
|
@ -54,9 +54,15 @@ public class PlayerJoinQuitListener implements Listener {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
e.getPlayer().sendMessage(changes.pop());
|
||||
if (changes.empty())
|
||||
if (!e.getPlayer().isOnline()) {
|
||||
stopScheduler();
|
||||
return;
|
||||
}
|
||||
if (changes.empty()) {
|
||||
stopScheduler();
|
||||
return;
|
||||
}
|
||||
e.getPlayer().sendMessage(changes.pop());
|
||||
}
|
||||
}, 20, 20);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue