Fix message colour for invite commands

This commit is contained in:
Magnus Ulf Jørgensen 2017-05-28 18:23:14 +02:00
parent baf1d6fde8
commit 25a54882c9
3 changed files with 4 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class CmdFactionsInviteAdd extends FactionsCommand
// Already member?
if (mplayer.getFaction() == msenderFaction)
{
msg("%s<i> is already a member of %s<i>.", mplayer.getName(), msenderFaction.getName());
msg("%s<i> is already a member of %s<i>.", mplayer.getName(), msenderFaction.getName(msender));
continue;
}
@ -83,7 +83,7 @@ public class CmdFactionsInviteAdd extends FactionsCommand
);
// Inform
msg("%s <i>is already invited to %s<i>.", mplayer.getName(), msenderFaction.getName());
msg("%s <i>is already invited to %s<i>.", mplayer.getName(), msenderFaction.getName(msender));
message(remove);
}
}

View File

@ -75,7 +75,7 @@ public class CmdFactionsInviteRemove extends FactionsCommand
);
// Inform
msg("%s<i> is already a member of %s<i>.", mplayer.getName(), msenderFaction.getName());
msg("%s<i> is already a member of %s<i>.", mplayer.getName(), msenderFaction.getName(msender));
message(kick);
continue;
}

View File

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