Remove the right player from invites

This commit is contained in:
Magnus Ulf Jørgensen 2017-05-28 18:17:08 +02:00
parent f1150d21e3
commit baf1d6fde8
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -459,7 +459,7 @@ public class Faction extends Entity<Faction> implements FactionsParticipator
public boolean uninvite(String playerId)
{
return this.getInvitations().detachIdFixed(playerId) != null;
return this.getInvitations().detachId(playerId) != null;
}
public boolean uninvite(MPlayer mplayer)