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();
|
PluginDescriptionFile pluginDescriptionFile = this.getDescription();
|
||||||
pluginManager = getServer().getPluginManager();
|
pluginManager = getServer().getPluginManager();
|
||||||
FileConfiguration newConfig = this.getConfig();
|
FileConfiguration newConfig = this.getConfig();
|
||||||
|
this.saveDefaultConfig();
|
||||||
|
newConfig.options().copyDefaults(true);
|
||||||
|
|
||||||
logger = Logger.getLogger("Minecraft");
|
logger = Logger.getLogger("Minecraft");
|
||||||
Server server = getServer();
|
Server server = getServer();
|
||||||
stargate = this;
|
stargate = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user