SteamWar/SpigotCore
Archiviert
13
0

Hotfix scoreboard

Dieser Commit ist enthalten in:
Lixfel 2020-12-08 16:56:55 +01:00
Ursprung 8c930a77bd
Commit 61a667ae98

Datei anzeigen

@ -62,6 +62,8 @@ public class SWScoreboard {
throw new SecurityException("Could not send scoreboard packets", e); throw new SecurityException("Could not send scoreboard packets", e);
} }
Bukkit.getScheduler().runTaskLater(Core.getInstance(), () -> { Bukkit.getScheduler().runTaskLater(Core.getInstance(), () -> {
if(!player.isOnline())
return;
try { try {
ProtocolLibrary.getProtocolManager().sendServerPacket(player, DISPLAY_SIDEBAR[toggle]); ProtocolLibrary.getProtocolManager().sendServerPacket(player, DISPLAY_SIDEBAR[toggle]);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {