diff --git a/src/de/steamwar/bungeecore/tablist/Tablist.java b/src/de/steamwar/bungeecore/tablist/Tablist.java index e5cf7f32..d6f94db2 100644 --- a/src/de/steamwar/bungeecore/tablist/Tablist.java +++ b/src/de/steamwar/bungeecore/tablist/Tablist.java @@ -95,8 +95,9 @@ public class Tablist extends MessageToMessageDecoder { update.add(tabItem); } } + boolean playerNotOnTeamserver = !Storage.teamServers.containsValue(player.getServer().getInfo()); for(PlayerListItem.Item item : directTabItems.values()) { - if(!nonNPCs.contains(item.getUuid()) && !npcs.contains(item.getUuid()) && !player.getUniqueId().equals(item.getUuid())) { + if(playerNotOnTeamserver && !nonNPCs.contains(item.getUuid()) && !npcs.contains(item.getUuid()) && !player.getUniqueId().equals(item.getUuid())) { npcs.add(item.getUuid()); addNpc.add(item.getUsername()); } @@ -210,10 +211,13 @@ public class Tablist extends MessageToMessageDecoder { } break; case ADD_PLAYER: + boolean playerNotOnTeamserver = !Storage.teamServers.containsValue(player.getServer().getInfo()); 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);