Migrating your configs from Vigilance
Updating from V0
Full example
public class MyConfig extends Config {
@Switch(
title = "My Switch",
description = "This is my switch",
icon = "/my_switch.svg",
category = "Switches",
subcategory = "General"
)
@PreviousNames({"switches.general.mySwitch"})
public static boolean mySwitch = false;
public MyConfig() {
super(
"example_config.json",
"/assets/examplemod/example_mod.png",
"Example Mod",
Category.QOL
);
loadFrom("config/my_mod.toml"); // Old Vigilance config
}
}Last updated