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(":");