SteamWar/BungeeCore
Archiviert
13
2

Fix NPC packet
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <git-5w3l@lixfel.de>
Dieser Commit ist enthalten in:
Lixfel 2024-06-28 23:35:53 +02:00
Ursprung e1eb392ffd
Commit 5554b28894

Datei anzeigen

@ -258,6 +258,7 @@ public class Tablist extends ChannelInboundHandlerAdapter {
private void sendNpcPacket(List<String> names, boolean remove) { private void sendNpcPacket(List<String> names, boolean remove) {
if(!names.isEmpty()) { if(!names.isEmpty()) {
UpdateTeamsPacket packet = new UpdateTeamsPacket(); UpdateTeamsPacket packet = new UpdateTeamsPacket();
packet.setName(TAB_TEAM);
packet.setMode(remove ? UpdateTeamsPacket.Mode.REMOVE_PLAYER : UpdateTeamsPacket.Mode.ADD_PLAYER); packet.setMode(remove ? UpdateTeamsPacket.Mode.REMOVE_PLAYER : UpdateTeamsPacket.Mode.ADD_PLAYER);
packet.setPlayers(names); packet.setPlayers(names);
sendPacket(player, packet); sendPacket(player, packet);