Different message for own faction and for other factions when faction not found.
Still weird for faction-less players to do /f show <other faction-less player>
This commit is contained in:
parent
c4c5bd9df9
commit
2209090783
@ -37,13 +37,14 @@ public class CmdShow extends FCommand {
|
||||
Faction faction = myFaction;
|
||||
if (this.argIsSet(0)) {
|
||||
faction = this.argAsFaction(0);
|
||||
if (faction == null) {
|
||||
if (faction == null || faction.isNone()) {
|
||||
msg(TL.COMMAND_SHOW_NOFACTION_OTHER);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (faction.isNone()) {
|
||||
msg(TL.COMMAND_SHOW_NOFACTION);
|
||||
msg(TL.COMMAND_SHOW_NOFACTION_SELF);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -343,7 +343,8 @@ public enum TL {
|
||||
COMMAND_SETHOME_SET("%s<i> set the home for your faction. You can now use:"),
|
||||
COMMAND_SETHOME_SETOTHER("<b>You have set the home for the %s<i> faction."),
|
||||
|
||||
COMMAND_SHOW_NOFACTION("You are not in a faction"),
|
||||
COMMAND_SHOW_NOFACTION_SELF("You are not in a faction"),
|
||||
COMMAND_SHOW_NOFACTION_OTHER("That's not a faction"),
|
||||
COMMAND_SHOW_TOSHOW("to show faction information"),
|
||||
COMMAND_SHOW_FORSHOW("for showing faction information"),
|
||||
COMMAND_SHOW_DESCRIPTION("<a>Description: <i>%s"),
|
||||
|
Loading…
Reference in New Issue
Block a user