Examples of GameClient


Examples of lineage2.gameserver.network.GameClient

          else
          {
            level = -100;
          }
          LoginServerCommunication.getInstance().sendPacket(new ChangeAccessLevel(account, level, banExpire));
          GameClient client = LoginServerCommunication.getInstance().getAuthedClient(account);
          if (client != null)
          {
            Player player = client.getActiveChar();
            if (player != null)
            {
              player.kick();
              activeChar.sendMessage("Player " + player.getName() + " kicked.");
            }
View Full Code Here

Examples of lineage2.gameserver.network.GameClient

   * Method runImpl.
   */
  @Override
  protected void runImpl()
  {
    GameClient client = getClient();
    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())
      {
        client.close(new LoginFail(LoginFail.SYSTEM_ERROR_LOGIN_LATER));
        return;
      }
      GameClient oldClient = LoginServerCommunication.getInstance().addWaitingClient(client);
      if (oldClient != null)
      {
        oldClient.close(ServerClose.STATIC);
      }
      LoginServerCommunication.getInstance().sendPacket(new PlayerAuthRequest(client));
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.GameClient

   * @see java.lang.Runnable#run()
   */
  @Override
  public final void run()
  {
    GameClient client = getClient();
    try
    {
      runImpl();
    }
    catch (Exception e)
View Full Code Here

Examples of org.gojul.fourinaline.model.GameClient

        String playerName = GUIMessages.COMPUTER_ADVERSORY_TEXT.toString();
       
        if (computerPlayerIndex != 0)
          playerName += " " + computerPlayerIndex;
       
        GameClient AIclient = new AIGameClient(gameServer, aiServerTicket, playerName, new DefaultEvalScore(), aiPlayerGameLevel.getLevel());
        new Thread(AIclient).start();
        continueTryingCreateAIGameClient = false;
      }
      catch (PlayerRegisterException e)
      {
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.