geforkt von SteamWar/BungeeCore
Adapt to BungeeCord 1.19.3 API changes
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<>();
|
private final Map<ServerInfo, List<Item>> players = new HashMap<>();
|
||||||
|
|
||||||
public TablistBuild() {
|
public TablistBuild() {
|
||||||
for (ServerInfo server : ProxyServer.getInstance().getServersCopy().values()){
|
for (ServerInfo server : new ArrayList<>(ProxyServer.getInstance().getServers().values())){
|
||||||
Subserver subserver = Subserver.getSubserver(server);
|
Subserver subserver = Subserver.getSubserver(server);
|
||||||
if(server.getPlayers().isEmpty() || subserver == null || subserver.getType() != Servertype.BAUSERVER)
|
if(server.getPlayers().isEmpty() || subserver == null || subserver.getType() != Servertype.BAUSERVER)
|
||||||
continue;
|
continue;
|
||||||
|
@ -87,7 +87,7 @@ public class TablistManager extends BasicListener {
|
|||||||
|
|
||||||
private void updateTablist() {
|
private void updateTablist() {
|
||||||
List<TablistPart> subservers = new ArrayList<>();
|
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())
|
if(server.getPlayers().isEmpty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren