Add external players of teamserver to tablist of player #498
@ -95,9 +95,9 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
||||
update.add(tabItem);
|
||||
}
|
||||
}
|
||||
boolean playerOnTeamserver = Storage.teamServers.containsValue(player.getServer().getInfo());
|
||||
boolean playerNotOnTeamserver = !Storage.teamServers.containsValue(player.getServer().getInfo());
|
||||
for(PlayerListItem.Item item : directTabItems.values()) {
|
||||
if(playerOnTeamserver && !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());
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren