MassiveCore - MassivePlugin and Active

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

No files matched your search

@@ -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);
}
@@ -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 ...