Examples of ICommunityBoardHandler


Examples of lineage2.gameserver.handler.bbs.ICommunityBoardHandler

    {
      return;
    }
    if (Config.COMMUNITYBOARD_ENABLED)
    {
      ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(Config.BBS_DEFAULT);
      if (handler != null)
      {
        handler.onBypassCommand(activeChar, Config.BBS_DEFAULT);
      }
    }
    else
    {
      activeChar.sendPacket(new SystemMessage2(SystemMsg.THE_COMMUNITY_SERVER_IS_CURRENTLY_OFFLINE));
View Full Code Here

Examples of lineage2.gameserver.handler.bbs.ICommunityBoardHandler

    Player activeChar = getClient().getActiveChar();
    if (activeChar == null)
    {
      return;
    }
    ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(_url);
    if (handler != null)
    {
      if (!Config.COMMUNITYBOARD_ENABLED)
      {
        activeChar.sendPacket(new SystemMessage2(SystemMsg.THE_COMMUNITY_SERVER_IS_CURRENTLY_OFFLINE));
      }
      else
      {
        handler.onWriteCommand(activeChar, _url, _arg1, _arg2, _arg3, _arg4, _arg5);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.handler.bbs.ICommunityBoardHandler

      StringTokenizer st2 = new StringTokenizer(bypass, ";");
      String[] mBypass = st2.nextToken().split(":");
      String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
      if (pBypass != null)
      {
        ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(pBypass);
        if (handler != null)
        {
          handler.onBypassCommand(player, pBypass);
        }
      }
      int listId = Integer.parseInt(mBypass[1]);
      MultiSellHolder.getInstance().SeparateAndSend(listId, player, 0);
      return;
    }
    else if (bypass.startsWith("_bbssell"))
    {
      StringTokenizer st2 = new StringTokenizer(bypass, ";");
      st2.nextToken().split(":");
      String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
      if (pBypass != null)
      {
        ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(pBypass);
        if (handler != null)
        {
          handler.onBypassCommand(player, pBypass);
        }
      }
      player.setIsBBSUse(true);
      NpcTradeList list = BuyListHolder.getInstance().getBuyList(-1);
      player.sendPacket(new ExBuySellList.BuyList(list, player, 0.), new ExBuySellList.SellRefundList(player, false));
      player.sendChanges();
      return;
    }
    else if (bypass.startsWith("_bbsscripts"))
    {
      StringTokenizer st2 = new StringTokenizer(bypass, ";");
      String sBypass = st2.nextToken().substring(12);
      String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
      if (pBypass != null)
      {
        ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(pBypass);
        if (handler != null)
        {
          handler.onBypassCommand(player, pBypass);
        }
      }
      String[] word = sBypass.split("\\s+");
      String[] args = sBypass.substring(word[0].length()).trim().split("\\s+");
      String[] path = word[0].split(":");
View Full Code Here

Examples of lineage2.gameserver.handler.bbs.ICommunityBoardHandler

    }
    if ((bpType == BypassType.SIMPLE_BBS) && !bypass.startsWith("_bbsscripts"))
    {
      return new DecodedBypass(bypass, true).trim();
    }
    ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(bypass);
    if (handler != null)
    {
      return new DecodedBypass(bypass, handler).trim();
    }
    _log.warn("Direct access to bypass: " + bypass + " / Player: " + getName());
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.