Makes sure default config values are stored with comments on the first run
This commit is contained in:
parent
e86be3e848
commit
a74d47e999
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user