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 55427e477..443dc104b 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java +++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/lobbyBalancer/LobbyBalancer.java @@ -96,6 +96,8 @@ public class LobbyBalancer implements Listener, Runnable if (timeSpentInLock > 50) System.out.println("[==] TIMING [==] Locked loading servers for " + timeSpentInLock + "ms"); + + _lobbyIndex = 0; } } } diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java index 2543d2609..2b97f9b62 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java +++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/playerCount/PlayerCount.java @@ -24,7 +24,6 @@ public class PlayerCount implements Listener, Runnable { private DataRepository _repository; private DataRepository _secondRepository; - private UUID _uuid; private Region _region; private ListenerInfo _listenerInfo; @@ -34,7 +33,6 @@ public class PlayerCount implements Listener, Runnable public PlayerCount(Plugin plugin) { - _uuid = UUID.randomUUID(); _region = !new File("eu.dat").exists() ? Region.US : Region.EU; _plugin = plugin; @@ -86,7 +84,7 @@ public class PlayerCount implements Listener, Runnable */ private BungeeServer generateSnapshot() { - String name = _uuid.toString(); // Use random UUID for unique id name. + String name = _listenerInfo.getHost().getAddress().getHostAddress(); String host = _listenerInfo.getHost().getAddress().getHostAddress(); int port = _listenerInfo.getHost().getPort(); boolean connected = InternetStatus.isConnected();