Prevent MPS servers with Lobbyblablabla-1 as...

...the name from being loaded as an applicable lobby server
This commit is contained in:
Alexander Meech 2016-10-22 14:36:47 -04:00 committed by Shaun Bennett
parent b0ac3cac8c
commit d6dc750ece

View File

@ -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"))
{