Makes sure default config values are stored with comments on the first run

This commit is contained in:
Kristian Knarvik 2022-01-26 23:37:34 +01:00
parent e86be3e848
commit a74d47e999

View File

@ -339,6 +339,9 @@ public class Stargate extends JavaPlugin {
PluginDescriptionFile pluginDescriptionFile = this.getDescription();
pluginManager = getServer().getPluginManager();
FileConfiguration newConfig = this.getConfig();
this.saveDefaultConfig();
newConfig.options().copyDefaults(true);
logger = Logger.getLogger("Minecraft");
Server server = getServer();
stargate = this;