SteamWar/BungeeCore
Archiviert
13
2

Debug tablist
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-12-06 12:19:02 +01:00
Ursprung 9de6b8602d
Commit 2d85746d9f

Datei anzeigen

@ -37,7 +37,6 @@ import net.md_5.bungee.protocol.Either;
import net.md_5.bungee.protocol.PacketWrapper;
import net.md_5.bungee.protocol.ProtocolConstants;
import net.md_5.bungee.protocol.packet.*;
import net.md_5.bungee.util.ChatComponentTransformer;
import java.util.*;
import java.util.stream.Collectors;
@ -306,7 +305,8 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
}
private BaseComponent wrapName(String name) {
return ChatComponentTransformer.getInstance().transform(player, true, TextComponent.fromArray(TextComponent.fromLegacyText(name)));
System.out.println(TextComponent.fromArray(TextComponent.fromLegacyText(name)).toString());
return TextComponent.fromArray(TextComponent.fromLegacyText(name));
}
private void sendTabPacket(List<PlayerListItem.Item> items, PlayerListItem.Action action) { //Breaks in 1.19.3 if action != UPDATE_DISPLAY_NAME, ADD_PLAYER or REMOVE_PLAYER