MassiveCore - MassivePlugin and Active

This commit is contained in:
Olof Larsson
2016-02-25 22:28:09 +01:00
parent ce6a98e27d
commit 1f5e591ce6
38 changed files with 234 additions and 361 deletions

View File

@@ -21,9 +21,10 @@ public class OldConfColl extends Coll<OldConf>
// -------------------------------------------- //
@Override
public void init()
public void setActive(boolean active)
{
super.init();
super.setActive(active);
if ( ! active) return;
this.get(MassiveCore.INSTANCE, true);
}

View File

@@ -48,7 +48,7 @@ public class UpdateUtil
Factions.get().log("Updating Database to New Version!");
// ... load the old uconf data ...
OldConfColls.get().init();
OldConfColls.get().setActive(true);
OldConf oldConf = OldConfColls.get().getForUniverse(universe).get(MassiveCore.INSTANCE, true);
// ... transfer the old uconf data over to the new mconf ...