forked from External/mage
Server statistics - server uptime in hours, games played count.
This commit is contained in:
parent
446c1517cf
commit
538dd696ad
3 changed files with 124 additions and 90 deletions
|
|
@ -51,6 +51,7 @@ import mage.server.draft.DraftManager;
|
|||
import mage.server.game.*;
|
||||
import mage.server.tournament.TournamentFactory;
|
||||
import mage.server.tournament.TournamentManager;
|
||||
import mage.server.util.ServerMessagesUtil;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.util.Map.Entry;
|
||||
|
|
@ -342,6 +343,7 @@ public class TableController {
|
|||
break;
|
||||
}
|
||||
}
|
||||
ServerMessagesUtil.getInstance().incGamesStarted();
|
||||
}
|
||||
catch (Exception ex) {
|
||||
logger.fatal("Error starting game", ex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue