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
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
e.getPlayer().sendMessage(changes.pop());
|
if (!e.getPlayer().isOnline()) {
|
||||||
if (changes.empty())
|
|
||||||
stopScheduler();
|
stopScheduler();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (changes.empty()) {
|
||||||
|
stopScheduler();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
e.getPlayer().sendMessage(changes.pop());
|
||||||
}
|
}
|
||||||
}, 20, 20);
|
}, 20, 20);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue