From 2d85746d9fa8f3a614ccbf3e9b3539b3db8f5503 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 6 Dec 2023 12:19:02 +0100 Subject: [PATCH] Debug tablist Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/tablist/Tablist.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/tablist/Tablist.java b/src/de/steamwar/bungeecore/tablist/Tablist.java index e598fc69..b27fcf78 100644 --- a/src/de/steamwar/bungeecore/tablist/Tablist.java +++ b/src/de/steamwar/bungeecore/tablist/Tablist.java @@ -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 { } 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 items, PlayerListItem.Action action) { //Breaks in 1.19.3 if action != UPDATE_DISPLAY_NAME, ADD_PLAYER or REMOVE_PLAYER