diff --git a/src/com/massivecraft/massivecore/MassiveCoreMConf.java b/src/com/massivecraft/massivecore/MassiveCoreMConf.java index 5793b6a5..c264df5b 100644 --- a/src/com/massivecraft/massivecore/MassiveCoreMConf.java +++ b/src/com/massivecraft/massivecore/MassiveCoreMConf.java @@ -26,6 +26,12 @@ public class MassiveCoreMConf extends Entity protected static transient MassiveCoreMConf i; public static MassiveCoreMConf get() { return i; } + // -------------------------------------------- // + // VERSION + // -------------------------------------------- // + + public int version = 1; + // -------------------------------------------- // // ALIASES // -------------------------------------------- // diff --git a/src/com/massivecraft/massivecore/entity/migrator/MigratorMassiveCoreMConf001CleanInactivity.java b/src/com/massivecraft/massivecore/entity/migrator/MigratorMassiveCoreMConf001CleanInactivity.java new file mode 100644 index 00000000..67bb131f --- /dev/null +++ b/src/com/massivecraft/massivecore/entity/migrator/MigratorMassiveCoreMConf001CleanInactivity.java @@ -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")); + } + +}