From dcd426de08f6414df8084b8c51128e8c1afdac13 Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Sun, 21 May 2023 20:12:15 +0100 Subject: [PATCH] fix(bungee): unable to join when translating certain tab list entries (#306) --- .../triton/packetinterceptor/BungeeListener.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/rexcantor64/triton/packetinterceptor/BungeeListener.java b/core/src/main/java/com/rexcantor64/triton/packetinterceptor/BungeeListener.java index b2142e92..70261393 100644 --- a/core/src/main/java/com/rexcantor64/triton/packetinterceptor/BungeeListener.java +++ b/core/src/main/java/com/rexcantor64/triton/packetinterceptor/BungeeListener.java @@ -273,11 +273,20 @@ public void refreshTabHeaderFooter(String header, String footer) { private PlayerListItem.Item clonePlayerListItem(PlayerListItem.Item item) { PlayerListItem.Item item1 = new PlayerListItem.Item(); item1.setUuid(item.getUuid()); - item1.setDisplayName(item.getDisplayName()); - item1.setGamemode(item.getGamemode()); + + item1.setUsername(item.getUsername()); item1.setProperties(item.getProperties()); + + item1.setChatSessionId(item.getChatSessionId()); + item1.setPublicKey(item.getPublicKey()); + + item1.setListed(item.getListed()); + + item1.setGamemode(item.getGamemode()); + item1.setPing(item.getPing()); - item1.setUsername(item.getUsername()); + + item1.setDisplayName(item.getDisplayName()); return item1; }