Prevent MPS servers with Lobbyblablabla-1 as...
...the name from being loaded as an applicable lobby server
This commit is contained in:
parent
b0ac3cac8c
commit
d6dc750ece
@ -106,14 +106,14 @@ public class LobbyBalancer implements Listener, Runnable
|
||||
InetSocketAddress socketAddress = new InetSocketAddress(server.getPublicAddress(), server.getPort());
|
||||
_plugin.getProxy().getServers().put(server.getName(), _plugin.getProxy().constructServerInfo(server.getName(), socketAddress, "LobbyBalancer", false));
|
||||
|
||||
if (server.getName().toUpperCase().startsWith("LOBBY"))
|
||||
if (server.getName().toUpperCase().startsWith("LOBBY-"))
|
||||
{
|
||||
if (server.getMotd() == null || !server.getMotd().contains("Restarting"))
|
||||
{
|
||||
_sortedLobbies.add(server);
|
||||
}
|
||||
}
|
||||
if (server.getName().toUpperCase().startsWith("CLANSHUB"))
|
||||
if (server.getName().toUpperCase().startsWith("CLANSHUB-"))
|
||||
{
|
||||
if (server.getMotd() == null || !server.getMotd().contains("Restarting"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user