Use same instance methods for start classes as other branches.
This commit is contained in:
parent
a114a354c7
commit
00ce590ed0
@ -146,10 +146,11 @@ public class GameServer
|
||||
private static LoginServerThread _loginThread;
|
||||
private static GamePacketHandler _gamePacketHandler;
|
||||
private static TelnetStatusThread _statusServer;
|
||||
private static GameServer INSTANCE;
|
||||
|
||||
public static final Calendar dateTimeServerStarted = Calendar.getInstance();
|
||||
|
||||
public static void main(String[] args) throws Exception
|
||||
public GameServer() throws Exception
|
||||
{
|
||||
final long serverLoadStart = System.currentTimeMillis();
|
||||
|
||||
@ -608,4 +609,14 @@ public class GameServer
|
||||
{
|
||||
return _selectorThread;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception
|
||||
{
|
||||
INSTANCE = new GameServer();
|
||||
}
|
||||
|
||||
public static GameServer getInstance()
|
||||
{
|
||||
return INSTANCE;
|
||||
}
|
||||
}
|
@ -52,17 +52,7 @@ public class LoginServer
|
||||
private TelnetStatusThread _statusServer;
|
||||
private static int _loginStatus = ServerStatus.STATUS_NORMAL;
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
INSTANCE = new LoginServer();
|
||||
}
|
||||
|
||||
public static LoginServer getInstance()
|
||||
{
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
public LoginServer()
|
||||
private LoginServer() throws Exception
|
||||
{
|
||||
// GUI
|
||||
if (!GraphicsEnvironment.isHeadless())
|
||||
@ -211,4 +201,14 @@ public class LoginServer
|
||||
{
|
||||
_loginStatus = status;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception
|
||||
{
|
||||
INSTANCE = new LoginServer();
|
||||
}
|
||||
|
||||
public static LoginServer getInstance()
|
||||
{
|
||||
return INSTANCE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user