Server notify end game
This commit is contained in:
@@ -165,7 +165,8 @@ public class ServerLauncher {
|
|||||||
}
|
}
|
||||||
disconnectionTimer = timerExecutor.schedule(() -> {
|
disconnectionTimer = timerExecutor.schedule(() -> {
|
||||||
game.EndGameForFeit(game.getPlayerByUsername(playerList.keySet().stream().toList().getFirst()));
|
game.EndGameForFeit(game.getPlayerByUsername(playerList.keySet().stream().toList().getFirst()));
|
||||||
actionQueue.offer(new EndedGame(game.getSlotMap(), game.orderLogicCard, game.getCurrentState(),game.getPlayerStanding()));
|
serverRMI.notifyAll(new EndedGame(game.getSlotMap(), game.orderLogicCard, game.getCurrentState(),game.getPlayerStanding()));
|
||||||
|
serverTCP.notifyAll(new EndedGame(game.getSlotMap(), game.orderLogicCard, game.getCurrentState(),game.getPlayerStanding()));
|
||||||
System.out.println("Timer expired: no player reconnected in 60s.");
|
System.out.println("Timer expired: no player reconnected in 60s.");
|
||||||
}, 1, TimeUnit.MINUTES);
|
}, 1, TimeUnit.MINUTES);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user