diff --git a/src/de/steamwar/bungeecore/tablist/Tablist.java b/src/de/steamwar/bungeecore/tablist/Tablist.java index 418395b6..e598fc69 100644 --- a/src/de/steamwar/bungeecore/tablist/Tablist.java +++ b/src/de/steamwar/bungeecore/tablist/Tablist.java @@ -37,6 +37,7 @@ 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; @@ -305,7 +306,7 @@ public class Tablist extends MessageToMessageDecoder { } private BaseComponent wrapName(String name) { - return TextComponent.fromArray(TextComponent.fromLegacyText(name)); + return ChatComponentTransformer.getInstance().transform(player, true, 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