From 0fff965641dec21a61f7fcfb1a64fd364135a120 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Sat, 4 Mar 2023 23:02:12 -0500 Subject: [PATCH] (config) Add some config options --- .../configurations/ConfigSettings.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/src/main/java/us/crazycrew/crazyauctions/configurations/ConfigSettings.java b/api/src/main/java/us/crazycrew/crazyauctions/configurations/ConfigSettings.java index 635d508..0f38b89 100644 --- a/api/src/main/java/us/crazycrew/crazyauctions/configurations/ConfigSettings.java +++ b/api/src/main/java/us/crazycrew/crazyauctions/configurations/ConfigSettings.java @@ -1,7 +1,11 @@ package us.crazycrew.crazyauctions.configurations; +import ch.jalu.configme.Comment; import ch.jalu.configme.SettingsHolder; import ch.jalu.configme.configurationdata.CommentsConfiguration; +import ch.jalu.configme.properties.Property; + +import static ch.jalu.configme.properties.PropertyInitializer.newProperty; /** * @author RyderBelserion @@ -40,4 +44,13 @@ public class ConfigSettings implements SettingsHolder { conf.setComment("settings", header); } + + @Comment("Allow damage items to be auctioned off.") + public static final Property DAMAGED_ITEMS = newProperty("misc.allow-damaged-items", false); + + @Comment("Whether or not to allow `ah sell` or not.") + public static final Property SELLING_MODULE = newProperty("modules.selling-module", true); + + @Comment("Whether or not to allow `ah buy` or not.") + public static final Property BIDDING_MODULE = newProperty("modules.bidding-module", true); } \ No newline at end of file