Fixed who command and detatched the argument reading a bit.

This commit is contained in:
Olof Larsson
2011-10-10 01:43:21 +02:00
parent 3cc7766fa7
commit 27c45bf7f3
2 changed files with 27 additions and 16 deletions

View File

@ -33,8 +33,12 @@ public class CmdShow extends FCommand
@Override
public void perform()
{
Faction faction = this.argAsFaction(0, myFaction);
if (faction == null) return;
Faction faction = myFaction;
if (this.argIsSet(0))
{
faction = this.argAsFaction(0);
if (faction == null) return;
}
// if economy is enabled, they're not on the bypass list, and this command has a cost set, make 'em pay
if ( ! payForCommand(Conf.econCostShow)) return;