From 4348d2c35e9f8379c472a8c8ecaefc0559ff1d35 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Sat, 28 Jan 2012 12:11:12 -0600 Subject: [PATCH] Fix for storing player data in factions.json unnecessarily, and FPlayer add/remove methods are now marked as protected --- src/com/massivecraft/factions/Faction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/Faction.java b/src/com/massivecraft/factions/Faction.java index b0649aed..542c3ad9 100644 --- a/src/com/massivecraft/factions/Faction.java +++ b/src/com/massivecraft/factions/Faction.java @@ -23,7 +23,7 @@ public class Faction extends Entity implements EconomyParticipator // FIELD: fplayers // speedy lookup of players in faction - private Set fplayers = new HashSet(); + private transient Set fplayers = new HashSet(); // FIELD: invites // Where string is a lowercase player name @@ -351,13 +351,13 @@ public class Faction extends Entity implements EconomyParticipator } } } - public boolean addFPlayer(FPlayer fplayer) + protected boolean addFPlayer(FPlayer fplayer) { if (this.isNone()) return false; return fplayers.add(fplayer); } - public boolean removeFPlayer(FPlayer fplayer) + protected boolean removeFPlayer(FPlayer fplayer) { if (this.isNone()) return false;