43 lines
1.7 KiB
Java
43 lines
1.7 KiB
Java
package com.badbones69.crazyauctions.common.config.types;
|
|
|
|
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;
|
|
|
|
public class Config implements SettingsHolder {
|
|
|
|
public Config() {}
|
|
|
|
@Override
|
|
public void registerComments(CommentsConfiguration conf) {
|
|
String[] header = {
|
|
"Github: https://github.com/Crazy-Crew",
|
|
"",
|
|
"Issues: https://github.com/Crazy-Crew/CrazyAuctions/issues",
|
|
"Features: https://github.com/Crazy-Crew/CrazyAuctions//discussions/categories/features",
|
|
"",
|
|
"Legacy color codes such as &7,&c no longer work. You must use MiniMessage",
|
|
"https://docs.advntr.dev/minimessage/format.html#color"
|
|
};
|
|
|
|
String[] deprecation = {
|
|
"",
|
|
"Warning: This section is subject to change so it is considered deprecated.",
|
|
"This is your warning before the change happens.",
|
|
""
|
|
};
|
|
|
|
conf.setComment("misc", header);
|
|
}
|
|
|
|
@Comment("Allow damage items to be auctioned off.")
|
|
public static final Property<Boolean> damaged_items = newProperty("misc.allow-damaged-items", false);
|
|
|
|
@Comment("Whether or not to allow `ah sell` or not.")
|
|
public static final Property<Boolean> selling_module = newProperty("modules.selling-module", true);
|
|
|
|
@Comment("Whether or not to allow `ah buy` or not.")
|
|
public static final Property<Boolean> bidding_module = newProperty("modules.bidding-module", true);
|
|
} |