Fixed: ErrorType Totem, Server Output Cleaned

This commit is contained in:
rubenpirreram
2026-06-19 19:47:21 +02:00
parent 63ffb02112
commit e660a530e9
11 changed files with 25 additions and 12 deletions
@@ -208,6 +208,9 @@ public class GameEventProcessor {
if (!saveManager.save(game)) {
System.out.println("\n!!! Save failed !!!\n");
}
else {
System.out.println(event.getUsername()+": "+ event.getEventType() + " save successful.");
}
// During the lobby phase a disconnection only removes the player
// from the list; no broadcast is needed.
@@ -268,12 +271,14 @@ public class GameEventProcessor {
if (disconnectionTimer != null && !disconnectionTimer.isDone()) {
disconnectionTimer.cancel(false);
System.out.println("Disconnection TIMER reset");
}
disconnectionTimer = timerExecutor.schedule(
() -> endGameForfeit(game),
1, TimeUnit.MINUTES
);
System.out.println("Disconnection TIMER started, 60 seconds from now..." );
}
/**