mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08:00
Changes to game log.
This commit is contained in:
parent
3c3ebce7d5
commit
d40a3f591d
3 changed files with 12 additions and 4 deletions
|
|
@ -943,17 +943,19 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
|
||||
@Override
|
||||
public synchronized void quit(UUID playerId) {
|
||||
logger.debug("GameImpl.quit start " + playerId);
|
||||
if (state != null) {
|
||||
Player player = state.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
logger.debug("gameImpl.quit" + player.getName() + " quits the game");
|
||||
logger.debug("GameImpl.quit " + player.getName() + " quits the game");
|
||||
player.quit(this);
|
||||
}else {
|
||||
logger.error(new StringBuilder("gameImpl.quit - player not found - playerId: ").append(playerId));
|
||||
logger.error(new StringBuilder("GameImpl.quit - player not found - playerId: ").append(playerId));
|
||||
}
|
||||
} else {
|
||||
logger.error(new StringBuilder("gameImpl.quit - state not found - playerId: ").append(playerId));
|
||||
logger.error(new StringBuilder("GameImpl.quit - state not found - playerId: ").append(playerId));
|
||||
}
|
||||
logger.debug("GameImpl.quit end " + playerId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue