Options for disabling specific custom community board functions.
This commit is contained in:
parent
881bbbea33
commit
7ac7b394be
12
trunk/dist/game/config/Custom.properties
vendored
12
trunk/dist/game/config/Custom.properties
vendored
@ -592,6 +592,18 @@ CustomCommunityBoard = True
|
||||
# Default: 57 (Adena)
|
||||
CommunityCurrencyId = 57
|
||||
|
||||
# Enable Multisells.
|
||||
# Default: True
|
||||
CommunityEnableMultisells = True
|
||||
|
||||
# Enable Teleports.
|
||||
# Default: True
|
||||
CommunityEnableTeleports = True
|
||||
|
||||
# Enable Buffs.
|
||||
# Default: True
|
||||
CommunityEnableBuffs = True
|
||||
|
||||
# Price for Teleports.
|
||||
# Default: 0 (free)
|
||||
CommunityTeleportPrice = 0
|
||||
|
@ -80,7 +80,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
}
|
||||
}
|
||||
else if (Config.CUSTOM_CB_ENABLED && command.startsWith("_bbsmultisell"))
|
||||
else if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_MULTISELLS && command.startsWith("_bbsmultisell"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbsmultisell;", "");
|
||||
final String[] buypassOptions = fullBypass.split(",");
|
||||
@ -90,7 +90,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
final String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
}
|
||||
else if (Config.CUSTOM_CB_ENABLED && command.startsWith("_bbsteleport"))
|
||||
else if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_TELEPORTS && command.startsWith("_bbsteleport"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbsteleport;", "");
|
||||
final String[] buypassOptions = fullBypass.split(",");
|
||||
@ -108,7 +108,7 @@ public final class HomeBoard implements IParseBoardHandler
|
||||
final String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/Custom/" + page + ".html");
|
||||
CommunityBoardHandler.separateAndSend(html, activeChar);
|
||||
}
|
||||
else if (Config.CUSTOM_CB_ENABLED && command.startsWith("_bbsbuff"))
|
||||
else if (Config.CUSTOM_CB_ENABLED && Config.COMMUNITYBOARD_ENABLE_BUFFS && command.startsWith("_bbsbuff"))
|
||||
{
|
||||
final String fullBypass = command.replace("_bbsbuff;", "");
|
||||
final String[] buypassOptions = fullBypass.split(",");
|
||||
|
@ -816,6 +816,9 @@ public final class Config
|
||||
public static boolean FREE_JUMPS_FOR_ALL;
|
||||
public static boolean CUSTOM_CB_ENABLED;
|
||||
public static int COMMUNITYBOARD_CURRENCY;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_MULTISELLS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_TELEPORTS;
|
||||
public static boolean COMMUNITYBOARD_ENABLE_BUFFS;
|
||||
public static int COMMUNITYBOARD_TELEPORT_PRICE;
|
||||
public static int COMMUNITYBOARD_BUFF_PRICE;
|
||||
public static boolean FACTION_SYSTEM_ENABLED;
|
||||
@ -2616,6 +2619,9 @@ public final class Config
|
||||
|
||||
CUSTOM_CB_ENABLED = CustomSettings.getBoolean("CustomCommunityBoard", false);
|
||||
COMMUNITYBOARD_CURRENCY = CustomSettings.getInt("CommunityCurrencyId", 57);
|
||||
COMMUNITYBOARD_ENABLE_MULTISELLS = CustomSettings.getBoolean("CommunityEnableMultisells", true);
|
||||
COMMUNITYBOARD_ENABLE_TELEPORTS = CustomSettings.getBoolean("CommunityEnableTeleports", true);
|
||||
COMMUNITYBOARD_ENABLE_BUFFS = CustomSettings.getBoolean("CommunityEnableBuffs", true);
|
||||
COMMUNITYBOARD_TELEPORT_PRICE = CustomSettings.getInt("CommunityTeleportPrice", 0);
|
||||
COMMUNITYBOARD_BUFF_PRICE = CustomSettings.getInt("CommunityBuffPrice", 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user