mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
some minor changes
This commit is contained in:
parent
8d5ab2c9d1
commit
a7369fabd4
4 changed files with 6 additions and 9 deletions
|
|
@ -60,6 +60,10 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
|
|||
this.info = info;
|
||||
}
|
||||
|
||||
public static MageVersion getCurrent() {
|
||||
return new MageVersion(MAGE_VERSION_MAJOR, MAGE_VERSION_MINOR, MAGE_VERSION_PATCH, MAGE_VERSION_MINOR_PATCH, MAGE_VERSION_INFO);
|
||||
}
|
||||
|
||||
public int getMajor() {
|
||||
return major;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -311,10 +311,6 @@ public class Client {
|
|||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
public UUID getMainRoomId() {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
||||
public void watchTable(UUID roomId, UUID tableId) {
|
||||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ public class ServerMain implements MageServer {
|
|||
|
||||
private static final Logger logger = Logger.getLogger(MageServer.class);
|
||||
// private static final ExecutorService callExecutor = ThreadExecutor.getInstance().getCallExecutor();
|
||||
private static final MageVersion version = new MageVersion(MageVersion.MAGE_VERSION_MAJOR, MageVersion.MAGE_VERSION_MINOR, MageVersion.MAGE_VERSION_PATCH, MageVersion.MAGE_VERSION_MINOR_PATCH, MageVersion.MAGE_VERSION_INFO);
|
||||
private static final MageVersion version = MageVersion.getCurrent();
|
||||
|
||||
private static final String testModeArg = "-testMode=";
|
||||
private static final String fastDBModeArg = "-fastDbMode=";
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ public class ServerMessagesUtil {
|
|||
}
|
||||
|
||||
public ServerMessagesUtil() {
|
||||
this.startDate = System.currentTimeMillis();
|
||||
updateExecutor = Executors.newSingleThreadScheduledExecutor();
|
||||
updateExecutor.scheduleAtFixedRate(new Runnable() {
|
||||
@Override
|
||||
|
|
@ -182,10 +183,6 @@ public class ServerMessagesUtil {
|
|||
// }
|
||||
// });
|
||||
|
||||
public void setStartDate(long milliseconds) {
|
||||
this.startDate = milliseconds;
|
||||
}
|
||||
|
||||
public void incGamesStarted() {
|
||||
int value;
|
||||
do {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue