Package net.sf.l2j.gameserver.network

Examples of net.sf.l2j.gameserver.network.L2GameClient$DisconnectTask


    return new BigInteger(hex).toString(16);
  }

  public void doKickPlayer(String account)
  {
    final L2GameClient client = _accountsInGameServer.get(account);
    if (client != null)
    {
      client.closeNow();
      LoginServerThread.getInstance().sendLogout(account);
    }
  }
View Full Code Here


    {
      _log.info("user:" + _loginName);
      _log.info("key:" + key);
    }

    L2GameClient client = getClient();

    // avoid potential exploits
    if (client.getAccountName() == null)
    {
      client.setAccountName(_loginName);
      LoginServerThread.getInstance().addGameServerLogin(_loginName, client);
      LoginServerThread.getInstance().addWaitingClientAndSendRequest(_loginName, client, key);
    }
  }
View Full Code Here

        if (player.isFlying())
        {
          player.removeSkill(SkillTable.getInstance().getInfo(4289, 1));
        }

        L2GameClient client = getClient();

        // detach the client from the char so that the connection isnt closed in the deleteMe
        player.setClient(null);

        TvTEvent.onLogout(player);
        RegionBBSManager.getInstance().changeCommunityBoard();

        // removing player from the world
        player.deleteMe();
        L2GameClient.saveCharToDisk(client.getActiveChar());


        getClient().setActiveChar(null);

        // return the client to the authed status
        client.setState(GameClientState.AUTHED);

        RestartResponse response = new RestartResponse();
        sendPacket(response);

        // send char list
        CharSelectInfo cl = new CharSelectInfo(client.getAccountName(),
                             client.getSessionId().playOkID1);
        sendPacket(cl);
        client.setCharSelection(cl.getCharInfo());
    }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.network.L2GameClient$DisconnectTask

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.