Merge remote-tracking branch 'origin/master'

This commit is contained in:
Nicholas Rees 2021-03-17 17:45:32 -05:00
commit b596653faf

@ -145,6 +145,14 @@ public class HubBalancer implements Runnable, Listener {
}
return false;
});
proxy.getProxy().getPlayers().forEach(proxiedPlayer -> {
if (proxiedPlayer.getServer() == null) {
if (hubs.size() >= 1) // Do nothing we want to send player later on when lobbies are back online
sendToHub(proxiedPlayer);
else kickPlayer(proxiedPlayer, NO_AVAILABLE_HUB);
}
});
}
private ServerInfo sendToHub(ProxiedPlayer player) {