Fix misleading error in CmdKick

The error was shown to a player when s/he tried to kick someone who
didn't belong to a faction, and incorrectly asserted that something had
"went wrong".
This commit is contained in:
eueln
2015-01-10 11:32:56 -06:00
parent 561ab22924
commit 2955370c9e
4 changed files with 5 additions and 6 deletions

View File

@@ -58,9 +58,8 @@ public class CmdKick extends FCommand {
Faction toKickFaction = toKick.getFaction();
// The PlayerEntityCollection only holds online players, this was a specific issue that kept happening.
if (toKickFaction.getTag().equalsIgnoreCase(TL.WILDERNESS.toString())) {
sender.sendMessage(TL.COMMAND_KICK_OFFLINE.toString());
if (toKickFaction.isNone()) {
sender.sendMessage(TL.COMMAND_KICK_NONE.toString());
return;
}