Archiviert
1
0

Hotfix weird tablist behaviour

Dieser Commit ist enthalten in:
yoyosource 2022-10-25 21:14:51 +02:00
Ursprung 2b5b2c2443
Commit 356db56da3

Datei anzeigen

@ -93,7 +93,8 @@ public class TablistServer implements TablistPart {
return players.stream().map(item -> { return players.stream().map(item -> {
ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid()); ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid());
if (p == null) return item; if (p == null) return item;
if (Subserver.getSubserver(p.getServer().getInfo()).getType() == Servertype.ARENA) return item; Subserver subserver = Subserver.getSubserver(p.getServer().getInfo());
if (subserver != null && subserver.getType() == Servertype.ARENA) return item;
if (SteamwarUser.get(p.getUniqueId()).getTeam() != team) return item; if (SteamwarUser.get(p.getUniqueId()).getTeam() != team) return item;
return new Item(p, true); return new Item(p, true);
}); });