@FunctionalInterface
public interface ConfigLoadFilter
FileConfig is loaded and reloaded.
It can accept or reject the (re)load, based on the new version of the config.
If the (re)load is rejected, the config will not change.| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptNewVersion(CommentedConfig newConfig)
Filters the new version of a config, before it has been applied on the config itself.
|
boolean acceptNewVersion(CommentedConfig newConfig)
newConfig - the new configurationtrue to accept the new version, false to reject it