SteamWar/SpigotCore
Archiviert
13
0
Dieser Commit ist enthalten in:
BuildTools 2019-11-24 00:22:59 +01:00
Ursprung 9418df66fe
Commit f4cb5b14c0

Datei anzeigen

@ -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<String, Integer> getData() {