/
This release introduces two new features and some bug fixes!
onChange config attribute (#10). You can now register a function that is called whenever a specific config is updated. For example:
@Config(onChange = "onChange")
public static List<String> exampleOnChange = new ArrayList<>(List.of("xpple, earthcomputer"));
private static void onChange(List<String> oldValue, List<String> newValue) {
LOGGER.info("exampleOnChange was updated | old: {}, new: {}", oldValue, newValue);
}
new ModConfigBuilder<>("<mod id>", Configs.class)
.registerGlobalChangeHook(event -> BetterConfigCommon.LOGGER.info("{} was updated | old: {}, new: {}", event.config(), event.oldValue(), event.newValue()))
.build();

A very powerful and easy to use command based configuration library for servers and clients.