Fixed player count and removed debug code

This commit is contained in:
rtm516 2020-04-06 14:34:45 +01:00
parent d4fa651427
commit c114f49e84

View file

@ -143,7 +143,7 @@ public class GeyserConnector {
shuttingDown = true; shuttingDown = true;
if (players.size() >= 1) { if (players.size() >= 1) {
bootstrap.getGeyserLogger().info("Kicking " + players.size() + " players"); bootstrap.getGeyserLogger().info("Kicking " + (players.size() / 3) + " players");
for (GeyserSession playerSession : players.values()) { for (GeyserSession playerSession : players.values()) {
playerSession.disconnect("Geyser Proxy shutting down."); playerSession.disconnect("Geyser Proxy shutting down.");
@ -155,7 +155,6 @@ public class GeyserConnector {
// Simulate a long-running Job // Simulate a long-running Job
try { try {
while (true) { while (true) {
bootstrap.getGeyserLogger().info("Current entries: " + players.size());
if (players.size() == 0) { if (players.size() == 0) {
return; return;
} }