Config to disable community board heal.
This commit is contained in:
@@ -411,6 +411,10 @@ CommunityEnableTeleports = True
|
|||||||
# Default: True
|
# Default: True
|
||||||
CommunityEnableBuffs = True
|
CommunityEnableBuffs = True
|
||||||
|
|
||||||
|
# Enable Heal.
|
||||||
|
# Default: True
|
||||||
|
CommunityEnableHeal = True
|
||||||
|
|
||||||
# Price for Teleports.
|
# Price for Teleports.
|
||||||
# Default: 0 (free)
|
# Default: 0 (free)
|
||||||
CommunityTeleportPrice = 0
|
CommunityTeleportPrice = 0
|
||||||
|
@@ -209,7 +209,7 @@ public final class HomeBoard implements IParseBoardHandler
|
|||||||
}
|
}
|
||||||
CommunityBoardHandler.separateAndSend(HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html"), activeChar);
|
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;", "");
|
final String page = command.replace("_bbsheal;", "");
|
||||||
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < (Config.COMMUNITYBOARD_BUFF_PRICE))
|
if (activeChar.getInventory().getInventoryItemCount(Config.COMMUNITYBOARD_CURRENCY, -1) < (Config.COMMUNITYBOARD_BUFF_PRICE))
|
||||||
|
@@ -656,6 +656,7 @@ public final class Config
|
|||||||
public static boolean COMMUNITYBOARD_ENABLE_MULTISELLS;
|
public static boolean COMMUNITYBOARD_ENABLE_MULTISELLS;
|
||||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||||
|
public static boolean COMMUNITYBOARD_ENABLE_HEAL;
|
||||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||||
public static int COMMUNITYBOARD_HEAL_PRICE;
|
public static int COMMUNITYBOARD_HEAL_PRICE;
|
||||||
@@ -2109,6 +2110,7 @@ public final class Config
|
|||||||
COMMUNITYBOARD_ENABLE_MULTISELLS = CustomSettings.getBoolean("CommunityEnableMultisells", true);
|
COMMUNITYBOARD_ENABLE_MULTISELLS = CustomSettings.getBoolean("CommunityEnableMultisells", true);
|
||||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CustomSettings.getBoolean("CommunityEnableTeleports", true);
|
COMMUNITYBOARD_ENABLE_TELEPORTS = CustomSettings.getBoolean("CommunityEnableTeleports", true);
|
||||||
COMMUNITYBOARD_ENABLE_BUFFS = CustomSettings.getBoolean("CommunityEnableBuffs", true);
|
COMMUNITYBOARD_ENABLE_BUFFS = CustomSettings.getBoolean("CommunityEnableBuffs", true);
|
||||||
|
COMMUNITYBOARD_ENABLE_HEAL = CustomSettings.getBoolean("CommunityEnableHeal", true);
|
||||||
COMMUNITYBOARD_TELEPORT_PRICE = CustomSettings.getInt("CommunityTeleportPrice", 0);
|
COMMUNITYBOARD_TELEPORT_PRICE = CustomSettings.getInt("CommunityTeleportPrice", 0);
|
||||||
COMMUNITYBOARD_BUFF_PRICE = CustomSettings.getInt("CommunityBuffPrice", 0);
|
COMMUNITYBOARD_BUFF_PRICE = CustomSettings.getInt("CommunityBuffPrice", 0);
|
||||||
COMMUNITYBOARD_HEAL_PRICE = CustomSettings.getInt("CommunityHealPrice", 0);
|
COMMUNITYBOARD_HEAL_PRICE = CustomSettings.getInt("CommunityHealPrice", 0);
|
||||||
|
Reference in New Issue
Block a user