Package net.sf.l2j.gameserver.gameserverpackets

Examples of net.sf.l2j.gameserver.gameserverpackets.ServerStatus


   * @param id
   * @param value
   */
  public void sendServerStatus(int id, int value)
  {
    ServerStatus ss = new ServerStatus();
    ss.addAttribute(id,value);
    try
    {
      sendPacket(ss);
    }
    catch (IOException e)
View Full Code Here


            AuthResponse aresp = new AuthResponse(decrypt);
            _serverID = aresp.getServerId();
            _serverName = aresp.getServerName();
            Config.saveHexid(_serverID, hexToString(_hexID));
            _log.info("Registered on login as Server "+_serverID+" : "+_serverName);
            ServerStatus st = new ServerStatus();
            if(Config.SERVER_LIST_BRACKET)
            {
              st.addAttribute(ServerStatus.SERVER_LIST_SQUARE_BRACKET,ServerStatus.ON);
            }
            else
            {
              st.addAttribute(ServerStatus.SERVER_LIST_SQUARE_BRACKET,ServerStatus.OFF);
            }
            if(Config.SERVER_LIST_CLOCK)
            {
              st.addAttribute(ServerStatus.SERVER_LIST_CLOCK,ServerStatus.ON);
            }
            else
            {
              st.addAttribute(ServerStatus.SERVER_LIST_CLOCK,ServerStatus.OFF);
            }
            if(Config.SERVER_LIST_TESTSERVER)
            {
              st.addAttribute(ServerStatus.TEST_SERVER,ServerStatus.ON);
            }
            else
            {
              st.addAttribute(ServerStatus.TEST_SERVER,ServerStatus.OFF);
            }
            if(Config.SERVER_GMONLY)
            {
              st.addAttribute(ServerStatus.SERVER_LIST_STATUS,ServerStatus.STATUS_GM_ONLY);
            }
            else
            {
              st.addAttribute(ServerStatus.SERVER_LIST_STATUS,ServerStatus.STATUS_AUTO);
            }
            sendPacket(st);
            if(L2World.getInstance().getAllPlayersCount() > 0)
            {
              FastList<String> playerList = new FastList<String>();
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.gameserverpackets.ServerStatus

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.