Fix tab list
This commit is contained in:
@@ -9,6 +9,8 @@ import net.md_5.bungee.protocol.AbstractPacketHandler;
|
||||
import net.md_5.bungee.protocol.ProtocolConstants;
|
||||
|
||||
import java.util.UUID;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import net.md_5.bungee.chat.ComponentSerializer;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@@ -89,7 +91,7 @@ public class PlayerListItem extends DefinedPacket
|
||||
if ( protocolVersion < ProtocolConstants.MINECRAFT_SNAPSHOT )
|
||||
{
|
||||
Item item = items[0]; // Only one at a time
|
||||
writeString( item.displayName, buf );
|
||||
writeString( TextComponent.toLegacyText( ComponentSerializer.parse( item.displayName ) ), buf );
|
||||
buf.writeBoolean( action != Action.REMOVE_PLAYER );
|
||||
buf.writeShort( item.ping );
|
||||
} else
|
||||
|
Reference in New Issue
Block a user