Fix for error when disbanding faction from server console with economy enabled
This commit is contained in:
parent
5ef1c1a15e
commit
225471e530
@ -78,7 +78,7 @@ public class CmdDisband extends FCommand
|
|||||||
if (Conf.logFactionDisband)
|
if (Conf.logFactionDisband)
|
||||||
P.p.log("The faction "+faction.getTag()+" ("+faction.getId()+") was disbanded by "+(senderIsConsole ? "console command" : fme.getName())+".");
|
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
|
//Give all the faction's money to the disbander
|
||||||
double amount = Econ.getBalance(faction.getAccountId());
|
double amount = Econ.getBalance(faction.getAccountId());
|
||||||
|
Loading…
Reference in New Issue
Block a user