Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 08:30:12 +01:00
Fixed player count and removed debug code
Dieser Commit ist enthalten in:
Ursprung
d4fa651427
Commit
c114f49e84
@ -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;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren