From 39c002faaab2f634dbe4c6a2c53aafc0faa7cbdc Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Tue, 5 Mar 2024 18:56:56 -0500 Subject: [PATCH] Create config file --- .../crazyauctions/platform/impl/Config.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 common/src/main/java/com/ryderbelserion/crazyauctions/platform/impl/Config.java diff --git a/common/src/main/java/com/ryderbelserion/crazyauctions/platform/impl/Config.java b/common/src/main/java/com/ryderbelserion/crazyauctions/platform/impl/Config.java new file mode 100644 index 0000000..1971c9e --- /dev/null +++ b/common/src/main/java/com/ryderbelserion/crazyauctions/platform/impl/Config.java @@ -0,0 +1,41 @@ +package com.ryderbelserion.crazyauctions.platform.impl; + +import ch.jalu.configme.Comment; +import ch.jalu.configme.SettingsHolder; +import ch.jalu.configme.configurationdata.CommentsConfiguration; +import ch.jalu.configme.properties.Property; +import org.jetbrains.annotations.NotNull; +import static ch.jalu.configme.properties.PropertyInitializer.newProperty; + +public class Config implements SettingsHolder { + + + @Override + public void registerComments(@NotNull CommentsConfiguration conf) { + String[] header = { + "Support: https://discord.gg/badbones-s-live-chat-182615261403283459", + "Github: https://github.com/Crazy-Crew", + "", + "Issues: https://github.com/Crazy-Crew/CrazyAuctions/issues", + "Features: https://github.com/Crazy-Crew/CrazyAuctions/issues", + "", + "Sounds: https://jd.papermc.io/paper/1.20/org/bukkit/Sound.html", + "Enchantments: https://jd.papermc.io/paper/1.20/org/bukkit/enchantments/Enchantment.html" + }; + + conf.setComment("root", header); + } + + @Comment("Whether you want CrazyAuctions to shut up or not.") + public static final Property verbose_logging = newProperty("root.verbose_logging", true); + + @Comment({ + "Sends anonymous statistics about how the plugin is used to bstats.org.", + "bstats is a service for plugin developers to find out how the plugin being used,", + "This information helps us figure out how to better improve the plugin." + }) + public static final Property toggle_metrics = newProperty("root.toggle_metrics", true); + + @Comment("The prefix that appears in front of messages.") + public static final Property prefix = newProperty("root.prefix", "[CrazyAuctions]: "); +} \ No newline at end of file