Fix migrator

This commit is contained in:
Magnus Ulf Jørgensen 2017-12-17 15:13:14 +01:00
parent 05b632e8d5
commit 2a5f98e281
2 changed files with 29 additions and 0 deletions

View File

@ -26,6 +26,12 @@ public class MassiveCoreMConf extends Entity<MassiveCoreMConf>
protected static transient MassiveCoreMConf i; protected static transient MassiveCoreMConf i;
public static MassiveCoreMConf get() { return i; } public static MassiveCoreMConf get() { return i; }
// -------------------------------------------- //
// VERSION
// -------------------------------------------- //
public int version = 1;
// -------------------------------------------- // // -------------------------------------------- //
// ALIASES // ALIASES
// -------------------------------------------- // // -------------------------------------------- //

View File

@ -0,0 +1,23 @@
package com.massivecraft.massivecore.entity.migrator;
import com.massivecraft.massivecore.MassiveCoreMConf;
import com.massivecraft.massivecore.store.migrator.MigratorFieldRename;
import com.massivecraft.massivecore.store.migrator.MigratorRoot;
public class MigratorMassiveCoreMConf001CleanInactivity extends MigratorRoot
{
// -------------------------------------------- //
// INSTANCE & CONSTRUCT
// -------------------------------------------- //
private static MigratorMassiveCoreMConf001CleanInactivity i = new MigratorMassiveCoreMConf001CleanInactivity();
public static MigratorMassiveCoreMConf001CleanInactivity get() { return i; }
private MigratorMassiveCoreMConf001CleanInactivity()
{
super(MassiveCoreMConf.class);
this.addInnerMigrator(MigratorFieldRename.get("playercleanPeriodMillis", "cleanTaskPeriodMillis"));
this.addInnerMigrator(MigratorFieldRename.get("playercleanOffsetMillis", "cleanTaskOffsetMillis"));
this.addInnerMigrator(MigratorFieldRename.get("playercleanLastMillis", "cleanTaskLastMillis"));
}
}