Add config migration feature

This commit is contained in:
Frank van der Heijden 2021-07-24 18:21:30 +02:00
parent 5aeef212dc
commit 25fdec31b1
No known key found for this signature in database
GPG key ID: B808721C2DD5B5B8
16 changed files with 252 additions and 151 deletions

View file

@ -74,6 +74,11 @@ public class VelocityTomlConfig implements ServerUtilsConfig {
return config.get(path);
}
@Override
public int getInt(String path) {
return config.getOrElse(path, -1);
}
@Override
public Collection<? extends String> getKeys() {
return new HashSet<>(config.valueMap().keySet());