Remove the right player from invites
This commit is contained in:
parent
f1150d21e3
commit
baf1d6fde8
@ -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();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user