Config Setup
Creating the config
To create your config create a new class and add the following code
import dev.xdpxi.xdlib.api.v4.Config;
@Config.Setup(name = "Example Config", file = "config/example_config.json")
public class ExampleConfig implements Config.Configuration {
public static int exampleInt = 42;
public static boolean exampleBoolean = true;
public static String exampleString = "Default Value";
public static int advancedSetting = 100;
}
Once you have added that then add the following to your main class
Config.ConfigLoader.loadConfig(ExampleConfig.class);
Last updated