Config Options
Here you will learn how to create options inside OneConfig.
Adding options
Creation
@Switch(
name = "A random switch",
size = OptionSize.DUAL, // optional, declares whether the element is single column or dual column
category = "General", // optional
subcategory = "Switches" // optional
)
public static boolean bob = false; // this is the default value.Accessing
System.out.println("My thing in a variable called bob: " + MyConfig.bob);
System.out.println("Is this enabled? " + MyConfig.enabled);Disabling Options
Other option features
Sizes

Option types
Boolean ConfigsNumber ConfigsSelector ConfigsText ConfigsButtons, Colors and KeybindsDecorative ComponentsLast updated
Was this helpful?