Convert the old data to our new data and move the old files.

Closes #24 but it probably has a few bugs or prisoners who were in cells
are not any more, but I will only fix that if someone pursades me to.
This commit is contained in:
graywolf336
2014-03-14 17:40:44 -05:00
parent 48fe312193
commit 3e3f2d432e
6 changed files with 284 additions and 15 deletions

View File

@ -50,7 +50,7 @@ public class JailMain extends JavaPlugin {
//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();
boolean converted = lm.convertOldData();
if(!converted) getLogger().severe("We was unable to convert some, or all, of the old data.");
}