mirror of
https://github.com/correl/mage.git
synced 2024-11-24 19:19:56 +00:00
Server: added logs about fix command usage;
This commit is contained in:
parent
19060954ae
commit
cc0679b6d3
1 changed files with 8 additions and 0 deletions
|
@ -1192,6 +1192,14 @@ public class GameController implements GameCallback {
|
|||
if (state == null) {
|
||||
return "";
|
||||
}
|
||||
|
||||
logger.warn("FIX command was called for game " + game.getId() + " - players: " +
|
||||
game.getPlayerList().stream()
|
||||
.map(game::getPlayer)
|
||||
.filter(Objects::nonNull)
|
||||
.map(p -> p.getName() + (p.isInGame() ? " (play)" : " (out)"))
|
||||
.collect(Collectors.joining(", ")));
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("<br/>Game State:<br/><font size=-2>");
|
||||
sb.append(state);
|
||||
|
|
Loading…
Reference in a new issue