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:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user