Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.LeaveWorld


      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("Character " + player.getName() + " disconnected from server.");
      activeChar.sendPacket(sm);

      //Logout Character
      LeaveWorld ql = new LeaveWorld();
      player.sendPacket(ql);
      ql = null;

      RegionBBSManager.getInstance().changeCommunityBoard();
View Full Code Here


    else if (ON_HACK_ATTEMP.equals("jail") && cl.getActiveChar() != null)
      cl.getActiveChar().isInJail();
    else if (ON_HACK_ATTEMP.equals("ban") && cl.getActiveChar() != null)
      LoginServerThread.getInstance().sendAccessLevel(cl.getAccountName(), -100);
    _log.info("CatsGuard: Client " + cl + " use illegal software and will " + ON_HACK_ATTEMP + "ed. Reason: " + reason);
    cl.close(new LeaveWorld());
  }
View Full Code Here

      return;
    if(data[0]!=_SERVER_KEY)
    {
      if(LOG_OPTION.contains("NOPROTECT"))
        _log.info("CatsGuard: Client "+cl+" try to log with no CatsGuard");
      cl.close(new LeaveWorld());
      return;
    }
    String hwid = String.format("%x", data[3]);
    if(cl._reader==null)
    {
      if(LOG_OPTION.contains("HACK"))
        _log.info("CatsGuard: Client "+cl+" has no pre-authed state");
      cl.close(new LeaveWorld());
      return;
    }
    if(_bannedhwid.contains(hwid))
    {
      ((CatsGuardReader) cl._reader)._checkChar = true;
    }
    if(!_connections.containsKey(hwid))
      _connections.put(hwid,0);
    int nwindow = _connections.get(hwid);
    int max = MAX_SESSIONS;
    if (_premium.contains(hwid))
      max = MAX_PREMIUM_SESSIONS;
    if(max > 0 && ++nwindow>max)
    {
      if(LOG_OPTION.contains("SESSIONS"))
        _log.info("CatsGuard: To many sessions from hwid "+hwid);
      cl.close(new LeaveWorld());
      return;
    }
    if (!_premium.contains(hwid))
      _premium.add(hwid);
    _connections.put(hwid, nwindow);
View Full Code Here

   */
  public void closeNetConnection()
  {
    if(_client != null)
    {
      _client.close(new LeaveWorld());
      setClient(null);
    }
  }
View Full Code Here

      for(L2PcInstance player : L2World.getInstance().getAllPlayers())
      {
        if(!player.isGM())
        {
          counter++;
          player.sendPacket(new LeaveWorld());
          player.logout(true);
          RegionBBSManager.getInstance().changeCommunityBoard();
        }
      }
      activeChar.sendMessage("Kicked " + counter + " players");
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.LeaveWorld

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.