Fzzy Config

@Version

Marks a config class with a version integer. This can be used for record-keeping, or used to handle breaking updates in a meaningful manner. The version is marked at the top of the .toml file (0 by default) and the serialized version is compared against the annotation version. If a mismatch is detected, the configs update() method is called for mismatch handling.

@Version(version = 1)
public class MyConfig extends Config {
//constructor goes here
@Override
public void update(int deserializedVersion) {
if (deserializedVersion < 1) {
//do stuff to fix potential issues.
}
}
}