Fix for error when disbanding faction from server console with economy enabled

This commit is contained in:
Brettflan 2012-02-07 14:57:03 -06:00
parent 5ef1c1a15e
commit 225471e530
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class CmdDisband extends FCommand
if (Conf.logFactionDisband)
P.p.log("The faction "+faction.getTag()+" ("+faction.getId()+") was disbanded by "+(senderIsConsole ? "console command" : fme.getName())+".");
if (Econ.shouldBeUsed())
if (Econ.shouldBeUsed() && ! senderIsConsole)
{
//Give all the faction's money to the disbander
double amount = Econ.getBalance(faction.getAccountId());