valanths1990
CommunityBoard:
// Rank PvP System by Masterio
else if(command.startsWith("_bbsrps"))
{
RankPvpSystemBBSManager.getInstance().parsecmd(command, activeChar);
}
RankPvpSystemBBSManager:
@Override
public void parsecmd(String command, L2PcInstance activeChar)
{
if(RankPvpSystemConfig.RANK_PVP_SYSTEM_ENABLED && RankPvpSystemConfig.TOP_LIST_ENABLED)
{
if(command.startsWith("_bbsrps:"))
{
int page = 0;
try
{
page = Integer.parseInt(command.split(":", 2)[1].trim());
}
catch(Exception e)
{
log.info(e.getMessage());
page = 0;
}
separateAndSend(RankPvpSystemBBSHtm.getPage(activeChar, page), activeChar);
}
}
else if(!RankPvpSystemConfig.TOP_LIST_ENABLED)
{
ShowBoard sb = null;
sb = new ShowBoard("<html><body><br><br><center>Community Board Top List is disabled in config file</center><br><br></body></html>", "101");
activeChar.sendPacket(sb);
activeChar.sendPacket(new ShowBoard(null, "102"));
activeChar.sendPacket(new ShowBoard(null, "103"));
sb = null;
}
}
Fixed.