FastList<String> playerList = new FastList<String>();
for(L2PcInstance player : L2World.getInstance().getAllPlayers())
{
playerList.add(player.getAccountName());
}
PlayerInGame pig = new PlayerInGame(playerList);
sendPacket(pig);
}
break;
case 03:
PlayerAuthResponse par = new PlayerAuthResponse(decrypt);
String account = par.getAccount();
WaitingClient wcToRemove = null;
synchronized (_waitingClients)
{
for(WaitingClient wc : _waitingClients)
{
if(wc.account.equals(account))
{
wcToRemove = wc;
}
}
}
if(wcToRemove != null)
{
if(par.isAuthed())
{
if(Config.DEBUG)
{
_log.info("Login accepted player " + wcToRemove.account + " waited(" + (GameTimeController.getGameTicks() - wcToRemove.timestamp) + "ms)");
}
PlayerInGame pig = new PlayerInGame(par.getAccount());
sendPacket(pig);
pig = null;
wcToRemove.gameClient.setState(GameClientState.AUTHED);
wcToRemove.gameClient.setSessionId(wcToRemove.session);