From 2c1e72fa2bb35330e8f91a3b1c7ad20f0fc039e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Ulf=20J=C3=B8rgensen?= Date: Sat, 14 Apr 2018 12:25:07 +0200 Subject: [PATCH] Allow migration of Board --- src/com/massivecraft/factions/Factions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/massivecraft/factions/Factions.java b/src/com/massivecraft/factions/Factions.java index b5e093c5..9b6e37e5 100644 --- a/src/com/massivecraft/factions/Factions.java +++ b/src/com/massivecraft/factions/Factions.java @@ -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));