forked from External/mage
Changes to logging an chat session handling.
This commit is contained in:
parent
fc382740ce
commit
020daf94f5
12 changed files with 72 additions and 33 deletions
|
|
@ -91,7 +91,7 @@ public class GameController implements GameCallback {
|
|||
public GameController(Game game, ConcurrentHashMap<UUID, UUID> userPlayerMap, UUID tableId, UUID choosingPlayerId) {
|
||||
gameSessionId = UUID.randomUUID();
|
||||
this.userPlayerMap = userPlayerMap;
|
||||
chatId = ChatManager.getInstance().createChatSession();
|
||||
chatId = ChatManager.getInstance().createChatSession("Game " + game.getId());
|
||||
this.game = game;
|
||||
this.game.setSaveGame(ConfigSettings.getInstance().isSaveGameActivated());
|
||||
this.tableId = tableId;
|
||||
|
|
@ -106,7 +106,7 @@ public class GameController implements GameCallback {
|
|||
}
|
||||
|
||||
public void cleanUp() {
|
||||
// nothing now
|
||||
ChatManager.getInstance().destroyChatSession(chatId);
|
||||
}
|
||||
|
||||
private void init() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue