SteamWar/BungeeCore
Archiviert
13
2

Hotfix weird tablist behaviour
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-10-25 21:08:52 +02:00
Ursprung 67a7b60bdc
Commit 2b5b2c2443

Datei anzeigen

@ -19,7 +19,8 @@
package de.steamwar.bungeecore.tablist;
import de.steamwar.bungeecore.BungeeCore;
import de.steamwar.bungeecore.Servertype;
import de.steamwar.bungeecore.Subserver;
import de.steamwar.bungeecore.sql.SteamwarUser;
import de.steamwar.messages.ChatSender;
import de.steamwar.network.packets.common.FightInfoPacket;
@ -92,6 +93,7 @@ public class TablistServer implements TablistPart {
return players.stream().map(item -> {
ProxiedPlayer p = BungeeCord.getInstance().getPlayer(item.getUuid());
if (p == null) return item;
if (Subserver.getSubserver(p.getServer().getInfo()).getType() == Servertype.ARENA) return item;
if (SteamwarUser.get(p.getUniqueId()).getTeam() != team) return item;
return new Item(p, true);
});