diff --git a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerJoinQuitListener.java b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerJoinQuitListener.java index 9674a83..e9ae496 100644 --- a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerJoinQuitListener.java +++ b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerJoinQuitListener.java @@ -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); }