From 27bf2008f13746b77355b5bc238fc03a6a3a00c9 Mon Sep 17 00:00:00 2001 From: drtshock Date: Wed, 5 Nov 2014 18:36:13 -0600 Subject: [PATCH] Have factions return as 0 instead of null. --- .../com/massivecraft/factions/zcore/persist/MemoryFPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java index 638e375e..ff7d46ef 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java @@ -97,7 +97,7 @@ public abstract class MemoryFPlayer implements FPlayer { public Faction getFaction() { if (this.factionId == null) { - return null; + this.factionId = "0"; } return Factions.getInstance().getFactionById(this.factionId); }