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
|
|
@ -79,7 +79,7 @@ public class TournamentController {
|
|||
|
||||
public TournamentController(Tournament tournament, ConcurrentHashMap<UUID, UUID> userPlayerMap, UUID tableId) {
|
||||
this.userPlayerMap = userPlayerMap;
|
||||
chatId = ChatManager.getInstance().createChatSession();
|
||||
chatId = ChatManager.getInstance().createChatSession("Tournament " + tournament.getId());
|
||||
this.tournament = tournament;
|
||||
this.tableId = tableId;
|
||||
init();
|
||||
|
|
@ -427,4 +427,8 @@ public class TournamentController {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public void cleanUpOnRemoveTournament() {
|
||||
ChatManager.getInstance().destroyChatSession(chatId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue