diff --git a/trunk/dist/game/config/Custom.properties b/trunk/dist/game/config/Custom.properties index 3c0b84ddf6..a64ef1274b 100644 --- a/trunk/dist/game/config/Custom.properties +++ b/trunk/dist/game/config/Custom.properties @@ -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 diff --git a/trunk/dist/game/data/scripts/handlers/communityboard/HomeBoard.java b/trunk/dist/game/data/scripts/handlers/communityboard/HomeBoard.java index 49f4e3e94e..b8168adf6d 100644 --- a/trunk/dist/game/data/scripts/handlers/communityboard/HomeBoard.java +++ b/trunk/dist/game/data/scripts/handlers/communityboard/HomeBoard.java @@ -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(","); diff --git a/trunk/java/com/l2jserver/Config.java b/trunk/java/com/l2jserver/Config.java index 5a11734cc7..2d85700910 100644 --- a/trunk/java/com/l2jserver/Config.java +++ b/trunk/java/com/l2jserver/Config.java @@ -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);