From d6dc750ecefc75bc8ae27fa411aba0ede02d30ae Mon Sep 17 00:00:00 2001 From: Alexander Meech Date: Sat, 22 Oct 2016 14:36:47 -0400 Subject: [PATCH] Prevent MPS servers with Lobbyblablabla-1 as... ...the name from being loaded as an applicable lobby server --- .../src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java index 0c57abfea..de8602e07 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java +++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java @@ -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")) {