* Some changes to user handling / logging.

This commit is contained in:
LevelX2 2014-09-26 15:31:56 +02:00
parent 8ebc5656a3
commit 070e8609f4
5 changed files with 15 additions and 15 deletions

View file

@ -320,7 +320,6 @@ public class TournamentController {
if (tPlayer != null) {
if (started) {
if (tPlayer.isInTournament()) {
ChatManager.getInstance().broadcast(chatId, "", tPlayer.getPlayer().getName() + " has quit the tournament", MessageColor.BLACK, true, MessageType.STATUS, SoundToPlay.PlayerQuitTournament);
String info;
if (tournament.isDoneConstructing()) {
info = new StringBuilder("during round ").append(tournament.getRounds().size()).toString();
@ -351,6 +350,7 @@ public class TournamentController {
if (tournamentSessions.containsKey(playerId)) {
tournamentSessions.get(tPlayer.getPlayer().getId()).quit();
}
ChatManager.getInstance().broadcast(chatId, "", tPlayer.getPlayer().getName() + " has quit the tournament", MessageColor.BLACK, true, MessageType.STATUS, SoundToPlay.PlayerQuitTournament);
}
} else {
tournament.leave(playerId);