Package lineage2.loginserver

Examples of lineage2.loginserver.L2LoginClient.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


    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

      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

        }
      }
    }
    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.