Package l2p.gameserver.network

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


    final L2GameClient client = getClient();
    client.setSessionId(key);
    client.setLoginName(_loginName);
    if(Config.GG_CHECK)
    {
      client.sendPacket(Msg.GameGuardQuery);
      ThreadPoolManager.getInstance().scheduleAi(new GGTest(client), 500, true);
    }
    LSConnection.getInstance().addWaitingClient(client);
  }
View Full Code Here


        client.setState(L2GameClient.GameClientState.AUTHED);
        client.setBonus(bonus);
        client.setBonusExpire(bonusExpire);
        getLoginServer().getCon().addAccountInGame(client);
        CharacterSelectionInfo csi = new CharacterSelectionInfo(client.getLoginName(), client.getSessionId().playOkID1);
        client.sendPacket(csi);
        client.setCharSelection(csi.getCharInfo());
        sendPacket(new PlayerInGame(client.getLoginName(), Stats.getOnline(true)));
      }
      else
      {
View Full Code Here

        sendPacket(new PlayerInGame(client.getLoginName(), Stats.getOnline(true)));
      }
      else
      {
        //log.severe("Cheater? SessionKey invalid! Login: " + client.getLoginName() + ", IP: " + client.getIpAddr());
        client.sendPacket(new LoginFail(LoginFail.INCORRECT_ACCOUNT_INFO_CONTACT_CUSTOMER_SUPPORT));
        ThreadPoolManager.getInstance().scheduleGeneral(new KickWaitingClientTask(client), 1000);
        LSConnection.getInstance().sendPacket(new PlayerLogout(client.getLoginName()));
        LSConnection.getInstance().removeAccount(client);
      }
    }
View Full Code Here

        return;
      }
      L2GameClient sameClient = waitingClients.remove(client.getLoginName());
      if(sameClient != null)
      {
        sameClient.sendPacket(new LoginFail(LoginFail.ACOUNT_ALREADY_IN_USE));
        ThreadPoolManager.getInstance().scheduleGeneral(new KickWaitingClientTask(sameClient), 1000);
      }
      waitingClients.put(client.getLoginName(), client);
      sendPacket(new PlayerAuthRequest(client));
    }
View Full Code Here

      {
        L2Player activeChar = oldClient.getActiveChar();
        if(activeChar != null)
        {
          activeChar.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
          oldClient.sendPacket(Msg.ServerClose);
        }
        else
        {
          oldClient.sendPacket(Msg.ServerClose);
        }
View Full Code Here

          activeChar.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
          oldClient.sendPacket(Msg.ServerClose);
        }
        else
        {
          oldClient.sendPacket(Msg.ServerClose);
        }
        ThreadPoolManager.getInstance().scheduleGeneral(new KickPlayerInGameTask(oldClient), 1000);
      }
      if(client.getLoginName() != null)
      {
View Full Code Here

        {
          activeChar.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
        }
        else
        {
          client.sendPacket(Msg.ServerClose);
        }
        ThreadPoolManager.getInstance().scheduleGeneral(new KickPlayerInGameTask(client), 1000);
      }
    }
  }
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.