rendered paste bodyIndex: C:/workspace/c4/java/net/sf/l2j/gameserver/LoginServerThread.java
===================================================================
--- C:/workspace/c4/java/net/sf/l2j/gameserver/LoginServerThread.java (revision 1624)
+++ C:/workspace/c4/java/net/sf/l2j/gameserver/LoginServerThread.java (working copy)
@@ -182,6 +182,7 @@
_gameInternalHost = Config.INTERNAL_HOSTNAME;
_waitingClients = new FastList<WaitingClient>();
_accountsInGameServer = new FastMap<String, Connection>();
+ _maxPlayer=Config.MAXIMUM_ONLINE_USERS;
}
public static LoginServerThread getInstance()
@@ -208,7 +209,7 @@
_loginSocket = new Socket(_hostname,_port);
_in = _loginSocket.getInputStream();
_out = new BufferedOutputStream(_loginSocket.getOutputStream());
-
+
//init Blowfish
_blowfishKey = generateHex(40);
_blowfish = new NewCrypt("_;v.]05-31!|+-%xT!^[$\00");
@@ -388,6 +389,16 @@
doKickPlayer(kp.getAccount());
break;
}
+
+ try
+ {
+ sendServerStatus(ServerStatus.MAX_PLAYERS,_maxPlayer);
+ } catch (NullPointerException e)
+ {
+ _log.warning("NPE: " + e);
+ e.printStackTrace();
+ }
}
}
catch (UnknownHostException e)
@@ -542,7 +553,6 @@
*/
public void setMaxPlayer(int maxPlayer)
{
- sendServerStatus(ServerStatus.MAX_PLAYERS,maxPlayer);
_maxPlayer = maxPlayer;
}