You can define the code that runs when the user clicks "Save" using the following method.
[...] builder.setSavingRunnable(() -> { // Serialise the config into the config file. This will be called last after all variables are updated. });
Last updated 4 years ago