Fix for storing player data in factions.json unnecessarily, and FPlayer add/remove methods are now marked as protected
This commit is contained in:
parent
58e7e5e3f1
commit
e4a58c12f4
@ -30,7 +30,7 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
|
|
||||||
// FIELD: fplayers
|
// FIELD: fplayers
|
||||||
// speedy lookup of players in faction
|
// speedy lookup of players in faction
|
||||||
private Set<FPlayer> fplayers = new HashSet<FPlayer>();
|
private transient Set<FPlayer> fplayers = new HashSet<FPlayer>();
|
||||||
|
|
||||||
// FIELD: invites
|
// FIELD: invites
|
||||||
// Where string is a lowercase player name
|
// Where string is a lowercase player name
|
||||||
@ -340,13 +340,13 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public boolean addFPlayer(FPlayer fplayer)
|
protected boolean addFPlayer(FPlayer fplayer)
|
||||||
{
|
{
|
||||||
if (this.isPlayerFreeType()) return false;
|
if (this.isPlayerFreeType()) return false;
|
||||||
|
|
||||||
return fplayers.add(fplayer);
|
return fplayers.add(fplayer);
|
||||||
}
|
}
|
||||||
public boolean removeFPlayer(FPlayer fplayer)
|
protected boolean removeFPlayer(FPlayer fplayer)
|
||||||
{
|
{
|
||||||
if (this.isPlayerFreeType()) return false;
|
if (this.isPlayerFreeType()) return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user