From baf1d6fde8f1f899a762d7ad18a05783770469a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Ulf=20J=C3=B8rgensen?= Date: Sun, 28 May 2017 18:17:08 +0200 Subject: [PATCH] Remove the right player from invites --- src/com/massivecraft/factions/cmd/CmdFactionsInviteRemove.java | 2 +- src/com/massivecraft/factions/entity/Faction.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsInviteRemove.java b/src/com/massivecraft/factions/cmd/CmdFactionsInviteRemove.java index a71e6a4b..160b7c58 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsInviteRemove.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsInviteRemove.java @@ -101,7 +101,7 @@ public class CmdFactionsInviteRemove extends FactionsCommand } // Apply - msenderFaction.uninvite(msender); + msenderFaction.uninvite(mplayer); // If all, we do this at last. So we only do it once. if (! all) msenderFaction.changed(); diff --git a/src/com/massivecraft/factions/entity/Faction.java b/src/com/massivecraft/factions/entity/Faction.java index dbd11975..efb3cceb 100644 --- a/src/com/massivecraft/factions/entity/Faction.java +++ b/src/com/massivecraft/factions/entity/Faction.java @@ -459,7 +459,7 @@ public class Faction extends Entity implements FactionsParticipator public boolean uninvite(String playerId) { - return this.getInvitations().detachIdFixed(playerId) != null; + return this.getInvitations().detachId(playerId) != null; } public boolean uninvite(MPlayer mplayer)