MassiveCore - MassivePlugin and Active
This commit is contained in:
@@ -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 ...
|
||||
|
||||
Reference in New Issue
Block a user