SteamWar/BungeeCore
Archiviert
13
2

Make Fight Server with one Player more visible

Dieser Commit ist enthalten in:
yoyosource 2021-06-25 17:48:47 +02:00
Ursprung 11f61f34cd
Commit 9e8a031230

Datei anzeigen

@ -199,13 +199,18 @@ public class TablistManager extends BasicListener {
.stream() .stream()
.filter(p -> p.getServer().getInfo() == currentServer || SteamwarUser.get(p).getUserGroup() != UserGroup.Member || (team != null && team == getTeam(p))) .filter(p -> p.getServer().getInfo() == currentServer || SteamwarUser.get(p).getUserGroup() != UserGroup.Member || (team != null && team == getTeam(p)))
.collect(Collectors.toList()); .collect(Collectors.toList());
if (server.equals("Bau")) {
Subserver subserver = Subserver.getSubserver(player); Subserver subserver = Subserver.getSubserver(player);
if (server.equals("Bau")) {
if (subserver != null && subserver.getType() == Servertype.BAUSERVER) { if (subserver != null && subserver.getType() == Servertype.BAUSERVER) {
players = playerMap.get(server); players = playerMap.get(server);
} }
server = Message.parse("TABLIST_BAU", player); server = Message.parse("TABLIST_BAU", player);
} }
if (subserver != null && subserver.getType() == Servertype.ARENA && playerMap.get(server).size() == 1) {
players = playerMap.get(server);
}
int increment = playerMap.get(server).size() - players.size(); int increment = playerMap.get(server).size() - players.size();
if (players.isEmpty()) { if (players.isEmpty()) {
server += " §7(" + increment + ")"; server += " §7(" + increment + ")";