Allow migration of Board

This commit is contained in:
Magnus Ulf Jørgensen 2018-04-14 12:25:07 +02:00
parent 8536d3db7b
commit 2c1e72fa2b

View File

@ -20,6 +20,7 @@ import com.massivecraft.factions.mixin.PowerMixin;
import com.massivecraft.massivecore.MassivePlugin;
import com.massivecraft.massivecore.collections.MassiveList;
import com.massivecraft.massivecore.command.type.RegistryType;
import com.massivecraft.massivecore.store.migrator.MigratorUtil;
import com.massivecraft.massivecore.util.MUtil;
import com.massivecraft.massivecore.xlib.gson.GsonBuilder;
import org.bukkit.ChatColor;
@ -73,6 +74,8 @@ public class Factions extends MassivePlugin
// TODO: Perhaps this should be placed in the econ integration somewhere?
MUtil.registerExtractor(String.class, "accountId", ExtractorFactionAccountId.get());
MigratorUtil.addJsonRepresentation(Board.class, Board.MAP_TYPE);
// Activate
this.activateAuto();
this.activate(this.getClassesActive("chat", ChatActive.class));