From 6769fd88e7c0105a92d0da5527911bf8ed19fc86 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 8 Jun 2022 16:06:31 +0200 Subject: [PATCH] Fix TablistManager --- src/de/steamwar/bungeecore/listeners/TablistManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/TablistManager.java b/src/de/steamwar/bungeecore/listeners/TablistManager.java index 6730c51..48d9adb 100644 --- a/src/de/steamwar/bungeecore/listeners/TablistManager.java +++ b/src/de/steamwar/bungeecore/listeners/TablistManager.java @@ -50,7 +50,9 @@ public class TablistManager extends BasicListener { @EventHandler public synchronized void onJoin(PostLoginEvent e){ BungeeCord.getInstance().getScheduler().schedule(BungeeCore.get(), () -> { - tablists.put(e.getPlayer(), new Tablist(e.getPlayer())); + if (BungeeCord.getInstance().getPlayer(e.getPlayer().getUniqueId()) != null) { + tablists.put(e.getPlayer(), new Tablist(e.getPlayer())); + } }, 1, TimeUnit.SECONDS); }