Archiviert
1
0

Fix TeamCommand tablist

Dieser Commit ist enthalten in:
yoyosource 2022-04-13 22:30:53 +02:00
Ursprung ea194d0f31
Commit 2d3466aecb

Datei anzeigen

@ -584,7 +584,9 @@ public class TeamCommand extends BasicCommand {
} }
ServerInfo serverInfo = Storage.teamServers.computeIfAbsent(targetTeam.getTeamId(), integer -> { ServerInfo serverInfo = Storage.teamServers.computeIfAbsent(targetTeam.getTeamId(), integer -> {
InetSocketAddress address = new InetSocketAddress(targetTeam.getAddress(), targetTeam.getPort()); InetSocketAddress address = new InetSocketAddress(targetTeam.getAddress(), targetTeam.getPort());
return ProxyServer.getInstance().constructServerInfo("Team " + targetTeam.getTeamKuerzel(), address, "SteamWar.de - Teamserver", false); ServerInfo info = ProxyServer.getInstance().constructServerInfo("Team " + targetTeam.getTeamKuerzel(), address, "SteamWar.de - Teamserver", false);
ProxyServer.getInstance().getServers().put(info.getName(), info);
return info;
}); });
player.connect(serverInfo); player.connect(serverInfo);
} }