From f4cb5b14c08d098d672f27c103d0420d119dc525 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 24 Nov 2019 00:22:59 +0100 Subject: [PATCH] hotfix --- .../src/de/steamwar/scoreboard/SWScoreboard.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java b/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java index ac95ad1..d71e169 100644 --- a/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java +++ b/SpigotCore_Main/src/de/steamwar/scoreboard/SWScoreboard.java @@ -61,6 +61,12 @@ public class SWScoreboard { PacketContainer display = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.SCOREBOARD_DISPLAY_OBJECTIVE); display.getBytes().write(0, (byte) 1); display.getStrings().write(0, this.title); + + try { + ProtocolLibrary.getProtocolManager().sendServerPacket(player, display); + } catch (InvocationTargetException ex) { + Bukkit.getLogger().log(Level.SEVERE, "COULD NOT SEND PACKAGE", ex); + } } public HashMap getData() {