SteamWar/BungeeCore
Archiviert
13
2

Fix TablistManager add Team visibility

Dieser Commit ist enthalten in:
yoyosource 2021-06-25 11:49:59 +02:00
Ursprung d11b4ba9ca
Commit 80ec27b0c4

Datei anzeigen

@ -241,7 +241,8 @@ public class TablistManager extends BasicListener {
} }
private Team getTeam(ProxiedPlayer p) { private Team getTeam(ProxiedPlayer p) {
return Team.get(SteamwarUser.get(p).getTeam()); Team team = Team.get(SteamwarUser.get(p).getTeam());
return team.getTeamId() <= 0 ? null : team;
} }
private String getTablistName(ProxiedPlayer p, boolean sameServer) { private String getTablistName(ProxiedPlayer p, boolean sameServer) {