Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
c6235ded6e
Commit
64b4865e6f
@ -38,7 +38,7 @@ public class TablistBuild implements TablistPart {
|
||||
private final Map<ServerInfo, List<Item>> players = new HashMap<>();
|
||||
|
||||
public TablistBuild() {
|
||||
for (ServerInfo server : ProxyServer.getInstance().getServersCopy().values()){
|
||||
for (ServerInfo server : new ArrayList<>(ProxyServer.getInstance().getServers().values())){
|
||||
Subserver subserver = Subserver.getSubserver(server);
|
||||
if(server.getPlayers().isEmpty() || subserver == null || subserver.getType() != Servertype.BAUSERVER)
|
||||
continue;
|
||||
|
@ -87,7 +87,7 @@ public class TablistManager extends BasicListener {
|
||||
|
||||
private void updateTablist() {
|
||||
List<TablistPart> subservers = new ArrayList<>();
|
||||
for (ServerInfo server : ProxyServer.getInstance().getServersCopy().values()){
|
||||
for (ServerInfo server : new ArrayList<>(ProxyServer.getInstance().getServers().values())){
|
||||
if(server.getPlayers().isEmpty())
|
||||
continue;
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren