Informative config migration

This commit is contained in:
CmdrKittens
2020-04-09 21:42:10 -04:00
parent d450ffc1f9
commit 55a314a5c6
2 changed files with 18 additions and 15 deletions
@@ -312,7 +312,7 @@ public class PlayerVaults extends JavaPlugin {
private void loadConfig() {
File configYaml = new File(this.getDataFolder(), "config.yml");
if (configYaml.exists()) {
this.config.setFromConfig(this.getConfig());
this.config.setFromConfig(this.getLogger(), this.getConfig());
try {
Files.move(configYaml.toPath(), this.getDataFolder().toPath().resolve("old_unused_config.yml"));
} catch (Exception e) {