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

This commit is contained in:
Brettflan 2012-02-07 14:56:57 -06:00
parent c74e4baab2
commit 0a6991a997

View File

@ -61,7 +61,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());