From 37e9994efe10d0388bd3646e9f8aa65f35a8c900 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Mon, 30 Nov 2015 10:44:15 +0100 Subject: [PATCH] Change detection. --- src/com/massivecraft/factions/entity/Faction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/entity/Faction.java b/src/com/massivecraft/factions/entity/Faction.java index ff534ea1..1939e7dc 100644 --- a/src/com/massivecraft/factions/entity/Faction.java +++ b/src/com/massivecraft/factions/entity/Faction.java @@ -464,15 +464,15 @@ public class Faction extends Entity implements EconomyParticipator, Nam public boolean setInvited(String playerId, boolean invited) { - TreeSet invitedPlayerIds = this.getInvitedPlayerIds(); + List invitedPlayerIds = new ArrayList(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;