From 845e219d5dd89cebac95989085ea2f0fd1cdeb1c Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Mon, 23 Dec 2013 13:40:47 -0600 Subject: [PATCH] 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. --- src/main/java/com/graywolf336/jail/JailMain.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/graywolf336/jail/JailMain.java b/src/main/java/com/graywolf336/jail/JailMain.java index 7277c8d..e023e81 100644 --- a/src/main/java/com/graywolf336/jail/JailMain.java +++ b/src/main/java/com/graywolf336/jail/JailMain.java @@ -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();