mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Moved concede messages before execution, so the order in the log is more logical.
This commit is contained in:
parent
16c3df2abd
commit
1131a84892
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue