mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-15 23:05:18 +01:00
Change detection.
This commit is contained in:
parent
259bf27f3e
commit
37e9994efe
@ -464,15 +464,15 @@ public class Faction extends Entity<Faction> implements EconomyParticipator, Nam
|
||||
|
||||
public boolean setInvited(String playerId, boolean invited)
|
||||
{
|
||||
TreeSet<String> invitedPlayerIds = this.getInvitedPlayerIds();
|
||||
List<String> invitedPlayerIds = new ArrayList<String>(this.getInvitedPlayerIds());
|
||||
boolean ret;
|
||||
if (invited)
|
||||
{
|
||||
ret = invitedPlayerIds.add(playerId.toLowerCase());
|
||||
ret = invitedPlayerIds.add(playerId);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = invitedPlayerIds.remove(playerId.toLowerCase());
|
||||
ret = invitedPlayerIds.remove(playerId);
|
||||
}
|
||||
this.setInvitedPlayerIds(invitedPlayerIds);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user