Fix for storing player data in factions.json unnecessarily, and FPlayer add/remove methods are now marked as protected

This commit is contained in:
Brettflan 2012-01-28 12:11:12 -06:00
parent f0eae47164
commit 4348d2c35e

View File

@ -23,7 +23,7 @@ public class Faction extends Entity implements EconomyParticipator
// FIELD: fplayers
// speedy lookup of players in faction
private Set<FPlayer> fplayers = new HashSet<FPlayer>();
private transient Set<FPlayer> fplayers = new HashSet<FPlayer>();
// 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;