Examples of closeNow()


Examples of com.l2jfrozen.gameserver.network.L2GameClient.closeNow()

      //_log.warning("Player with account " + login_cl.getAccount() + " kicked for flooding with packet " + Integer.toHexString(opcode));     
    }
    else if (_client instanceof L2GameClient)
    {   
      L2GameClient game_cl = (L2GameClient) _client;
      game_cl.closeNow();
     
      //_log.warning("Player with account " + game_cl.accountName + " kicked for flooding with packet " + Integer.toHexString(opcode));     
    }   
  }
 
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.L2GameClient.closeNow()

        game_cl.getActiveChar().setPunishLevel(L2PcInstance.PunishLevel.ACC, 0);     
        //_log.warning("Player " + game_cl.getActiveChar() + " of account " + game_cl.accountName + " banned forever for flooding with packet " + Integer.toHexString(opcode));       
        game_cl.getActiveChar().logout();
      }
     
      game_cl.closeNow();
      //_log.warning("Player with account " + game_cl.accountName + " kicked for flooding with packet " + Integer.toHexString(opcode));     
    }   
  } 
}
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.L2GameClient.closeNow()

        ((FastMap<String, L2GameClient>) _accountsInGameServer).put(account, client);
        return true;
      }
      if (Config.DEBUG)
        _log.info("Old Client was online --> Close Old Client Connection");
      savedClient.closeNow();
      _accountsInGameServer.remove(account);
      return false;
    }
    if (Config.DEBUG)
      _log.info("Client was not online --> New Client Connection");
View Full Code Here

Examples of l2p.gameserver.network.L2GameClient.closeNow()

    L2GameClient client = getClient();
    L2Player activeChar = client.getActiveChar();
    Collection<L2GameServerPacket> packets = new GArray<L2GameServerPacket>();
    if(activeChar == null)
    {
      client.closeNow(false);
      return;
    }
    boolean first = activeChar.entering;
    if(first)
    {
View Full Code Here

Examples of l2p.gameserver.network.L2GameClient.closeNow()

    if(client != null)
    {
      if(client.getState() != L2GameClient.GameClientState.CONNECTED)
      {
        log.severe("Trying to authd allready authed client.");
        client.closeNow(true);
        return;
      }
      if(client.getLoginName() == null || client.getLoginName().isEmpty())
      {
        client.closeNow(true);
View Full Code Here

Examples of l2p.gameserver.network.L2GameClient.closeNow()

        client.closeNow(true);
        return;
      }
      if(client.getLoginName() == null || client.getLoginName().isEmpty())
      {
        client.closeNow(true);
        log.warning("PlayerAuthResponse: empty accname for " + client);
        return;
      }
      SessionKey key = client.getSessionId();
      if(authed)
View Full Code Here

Examples of lineage2.gameserver.network.GameClient.closeNow()

  {
    GameClient client = getClient();
    Player activeChar = client.getActiveChar();
    if (activeChar == null)
    {
      client.closeNow(false);
      return;
    }
    int MyObjectId = activeChar.getObjectId();
    Long MyStoreId = activeChar.getStoredId();
    for(Castle castle : ResidenceHolder.getInstance().getResidenceList(Castle.class))
View Full Code Here

Examples of lineage2.gameserver.network.GameClient.closeNow()

    SessionKey key = new SessionKey(_loginKey1, _loginKey2, _playKey1, _playKey2);
    client.setSessionId(key);
    client.setLoginName(_loginName);
    if ((Shutdown.getInstance().getMode() != Shutdown.NONE) && (Shutdown.getInstance().getSeconds() <= 15))
    {
      client.closeNow(false);
    }
    else
    {
      if (LoginServerCommunication.getInstance().isShutdown())
      {
View Full Code Here

Examples of lineage2.loginserver.L2LoginClient.closeNow()

      rsaCipher.init(Cipher.DECRYPT_MODE, client.getRSAPrivateKey());
      decrypted = rsaCipher.doFinal(_raw, 0x00, 0x80);
    }
    catch (Exception e)
    {
      client.closeNow(true);
      return;
    }
    String user = new String(decrypted, 0x5E, 14).trim();
    user = user.toLowerCase();
    String password = new String(decrypted, 0x6C, 16).trim();
View Full Code Here

Examples of lineage2.loginserver.L2LoginClient.closeNow()

        }
      }
    }
    if (!IpBanManager.getInstance().tryLogin(client.getIpAddress(), passwordCorrect))
    {
      client.closeNow(false);
      return;
    }
    if (!passwordCorrect)
    {
      client.close(LoginFailReason.REASON_USER_OR_PASS_WRONG);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.