From d72d8f40431eb59778a5a21f72d7c6f64cfd20a3 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Wed, 21 Oct 2015 20:28:36 +0200 Subject: [PATCH] MassiveCore - Version Synchronized Warnings --- src/com/massivecraft/factions/Factions.java | 3 +++ src/com/massivecraft/factions/entity/Faction.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/Factions.java b/src/com/massivecraft/factions/Factions.java index eeab79df..a80aa11c 100644 --- a/src/com/massivecraft/factions/Factions.java +++ b/src/com/massivecraft/factions/Factions.java @@ -112,6 +112,9 @@ public class Factions extends MassivePlugin { if ( ! preEnable()) return; + // Version Synchronized + this.setVersionSynchronized(true); + // Initialize Aspects this.aspect = AspectColl.get().get(Const.ASPECT, true); this.aspect.register(); diff --git a/src/com/massivecraft/factions/entity/Faction.java b/src/com/massivecraft/factions/entity/Faction.java index 9172d48f..4f2ba4fa 100644 --- a/src/com/massivecraft/factions/entity/Faction.java +++ b/src/com/massivecraft/factions/entity/Faction.java @@ -1015,7 +1015,7 @@ public class Faction extends Entity implements EconomyParticipator { String msg = Txt.parse("WARN: Faction %s aka %s had unattached mplayer in index:", this.getName(), this.getId()); Factions.get().log(msg); - Factions.get().log(Factions.get().gson.toJson(mplayer)); + Factions.get().log(Factions.get().getGson().toJson(mplayer)); iter.remove(); } }