From 28f09e54b9fa4dfe702432223b49eddb42fbc3fc Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 6 Dec 2023 16:49:58 +0100 Subject: [PATCH] Fix Tablist --- src/de/steamwar/bungeecore/tablist/Tablist.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/tablist/Tablist.java b/src/de/steamwar/bungeecore/tablist/Tablist.java index d6f94db2..9c0440ee 100644 --- a/src/de/steamwar/bungeecore/tablist/Tablist.java +++ b/src/de/steamwar/bungeecore/tablist/Tablist.java @@ -261,13 +261,16 @@ public class Tablist extends MessageToMessageDecoder { return; } + boolean playerNotOnTeamserver = !Storage.teamServers.containsValue(player.getServer().getInfo()); for(PlayerListItemUpdate.Action action : actions) { switch (action) { case ADD_PLAYER: for (PlayerListItem.Item item : list.getItems()) { item.setPing(1); - item.setDisplayName(new TextComponent()); - item.setListed(false); + if (playerNotOnTeamserver) { + item.setDisplayName(new TextComponent()); + item.setListed(false); + } item.setPublicKey(null); if(!player.getUniqueId().equals(item.getUuid()) && item.getGamemode() == 3) item.setGamemode(1);