Resolve configuration resetting concern

This commit is contained in:
CmdrKittens
2020-04-09 22:21:22 -04:00
parent 55a314a5c6
commit aaf98cad02
2 changed files with 11 additions and 6 deletions
@@ -311,7 +311,7 @@ public class PlayerVaults extends JavaPlugin {
private void loadConfig() {
File configYaml = new File(this.getDataFolder(), "config.yml");
if (configYaml.exists()) {
if (!(new File(this.getDataFolder(), "config.conf").exists()) && configYaml.exists()) {
this.config.setFromConfig(this.getLogger(), this.getConfig());
try {
Files.move(configYaml.toPath(), this.getDataFolder().toPath().resolve("old_unused_config.yml"));