Changes the order of default config stuff to make sure comments are included in the saved config file

This commit is contained in:
Kristian Knarvik 2022-01-26 23:35:53 +01:00
parent 9753e51cb5
commit 758262e9d7

View File

@ -168,8 +168,8 @@ public final class PermissionSigns extends JavaPlugin {
//Load config and write the default config if necessary //Load config and write the default config if necessary
FileConfiguration config = this.getConfig(); FileConfiguration config = this.getConfig();
config.options().copyDefaults(true);
this.saveDefaultConfig(); this.saveDefaultConfig();
config.options().copyDefaults(true);
Translator.loadLanguages(loadConfig()); Translator.loadLanguages(loadConfig());
registerListeners(); registerListeners();