From 61a667ae985f8216fe745aabab92ca9dc4f35511 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 8 Dec 2020 16:56:55 +0100 Subject: [PATCH] Hotfix scoreboard --- SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java b/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java index a3d419b..7ea47f8 100644 --- a/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java +++ b/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java @@ -62,6 +62,8 @@ public class SWScoreboard { throw new SecurityException("Could not send scoreboard packets", e); } Bukkit.getScheduler().runTaskLater(Core.getInstance(), () -> { + if(!player.isOnline()) + return; try { ProtocolLibrary.getProtocolManager().sendServerPacket(player, DISPLAY_SIDEBAR[toggle]); } catch (InvocationTargetException e) {