SteamWar/BungeeCore
Archiviert
13
2

Hotfix TablistServer
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-11-01 22:14:19 +01:00
Ursprung 83839a292a
Commit 24bfb12941

Datei anzeigen

@ -90,6 +90,7 @@ public class TablistServer implements TablistPart {
public static Stream<Item> teamify(List<Item> players, ProxiedPlayer player) { public static Stream<Item> teamify(List<Item> players, ProxiedPlayer player) {
int team = SteamwarUser.get(player.getUniqueId()).getTeam(); int team = SteamwarUser.get(player.getUniqueId()).getTeam();
if (team == 0) return players.stream();
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;