Maybe copy the defaults on load to get the new config options?

Still not too sure if this will work correctly, as I don't know if this
will override the changes in the config.
This commit is contained in:
graywolf336 2013-12-23 13:40:47 -06:00
parent 1d8316f576
commit 845e219d5d

View File

@ -51,6 +51,9 @@ public class JailMain extends JavaPlugin {
//Only create the default config if it doesn't exist
saveDefaultConfig();
//Append new key-value pairs to the config
getConfig().options().copyDefaults(true);
// Set the header and save
getConfig().options().header(getHeader());
saveConfig();