Package net.sf.l2j.loginserver

Examples of net.sf.l2j.loginserver.LoginController$PurgeThread


    _ncotp = decrypted[0x7c];
    _ncotp |= decrypted[0x7d] << 8;
    _ncotp |= decrypted[0x7e] << 16;
    _ncotp |= decrypted[0x7f] << 24;

    LoginController lc = LoginController.getInstance();
    L2LoginClient client = getClient();
    AuthLoginResult result = lc.tryAuthLogin(_user, _password, getClient());

    switch (result)
    {
      case AUTH_SUCCESS:
        client.setAccount(_user);
        client.setState(LoginClientState.AUTHED_LOGIN);
        client.setSessionKey(lc.assignSessionKeyToClient(_user, client));
        if (Config.SHOW_LICENCE)
        {
          client.sendPacket(new LoginOk(getClient().getSessionKey()));
        }
        else
        {
          getClient().sendPacket(new ServerList(getClient()));
        }
        break;
      case INVALID_PASSWORD:
        client.close(LoginFailReason.REASON_USER_OR_PASS_WRONG);
        break;
      case ACCOUNT_BANNED:
        client.close(new AccountKicked(AccountKickedReason.REASON_PERMANENTLY_BANNED));
        break;
      case ALREADY_ON_LS:
        L2LoginClient oldClient;
        if ((oldClient = lc.getAuthedClient(_user)) != null)
        {
          // kick the other client
          oldClient.close(LoginFailReason.REASON_ACCOUNT_IN_USE);
          lc.removeAuthedLoginClient(_user);
        }
        break;
      case ALREADY_ON_GS:
        GameServerInfo gsi;
        if ((gsi = lc.getAccountOnGameServer(_user)) != null)
        {
          client.close(LoginFailReason.REASON_ACCOUNT_IN_USE);

          // kick from there
          if (gsi.isAuthed())
View Full Code Here

TOP

Related Classes of net.sf.l2j.loginserver.LoginController$PurgeThread

Copyright © 2018 www.massapicom. 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.