geforkt von SteamWar/BungeeCore
Make Fight Server with one Player more visible
Dieser Commit ist enthalten in:
Ursprung
11f61f34cd
Commit
9e8a031230
@ -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 + ")";
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren