Fix for error when disbanding faction from server console with economy enabled
This commit is contained in:
parent
c74e4baab2
commit
0a6991a997
@ -61,7 +61,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