Config to disable community board heal.

This commit is contained in:
MobiusDev
2016-12-31 20:29:25 +00:00
parent 254d0ec00a
commit de65113360
3 changed files with 7 additions and 1 deletions

View File

@@ -209,7 +209,7 @@ public final class HomeBoard implements IParseBoardHandler
}
CommunityBoardHandler.separateAndSend(HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"), activeChar);
}
else if ((Config.CUSTOM_CB_ENABLED && command.startsWith("_bbsheal")))
else if ((Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_HEAL && command.startsWith("_bbsheal")))
{
final String page = command.replace("_bbsheal;", "");
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < (Config.COMMUNITYBOARD_BUFF_PRICE))