From 2dfe777f3f086ef4aee1c17cb4c8331d34230b34 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Fri, 14 Mar 2014 15:18:36 -0500 Subject: [PATCH] Actually make a call to move over the old config. --- src/main/java/com/graywolf336/jail/JailMain.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/graywolf336/jail/JailMain.java b/src/main/java/com/graywolf336/jail/JailMain.java index b3dffcd..47bb4f6 100644 --- a/src/main/java/com/graywolf336/jail/JailMain.java +++ b/src/main/java/com/graywolf336/jail/JailMain.java @@ -10,6 +10,7 @@ import com.graywolf336.jail.beans.Prisoner; import com.graywolf336.jail.command.CommandHandler; import com.graywolf336.jail.command.JailHandler; import com.graywolf336.jail.enums.Settings; +import com.graywolf336.jail.legacy.LegacyManager; import com.graywolf336.jail.listeners.BlockListener; import com.graywolf336.jail.listeners.EntityListener; import com.graywolf336.jail.listeners.HandCuffListener; @@ -45,6 +46,14 @@ public class JailMain extends JavaPlugin { hcm = new HandCuffManager(); jm = new JailManager(this); + + //Try to load the old stuff before we load anything, esp the storage stuff + LegacyManager lm = new LegacyManager(this); + if(lm.doWeNeedToConvert()) { + boolean converted = lm.loadOldData(); + if(!converted) getLogger().severe("We was unable to convert some, or all, of the old data."); + } + io = new JailIO(this); io.loadLanguage();