* Moved concede messages before execution, so the order in the log is more logical.

This commit is contained in:
LevelX2 2014-02-09 17:13:16 +01:00
parent 16c3df2abd
commit 1131a84892

View file

@ -878,8 +878,8 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
public synchronized void quit(UUID playerId) {
Player player = state.getPlayer(playerId);
if (player != null) {
player.quit(this);
fireInformEvent(player.getName() + " quits the match.");
player.quit(this);
}
}
@ -888,8 +888,8 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
Player player = state.getPlayer(playerId);
if (player != null) {
logger.debug(new StringBuilder("Player ").append(player.getName()).append(" concedes game ").append(this.getId()));
player.concede(this);
fireInformEvent(player.getName() + " has conceded.");
player.concede(this);
}
}