From 0a6991a9974d5077e1e62e995289dfc3dc1e3fa4 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Tue, 7 Feb 2012 14:56:57 -0600 Subject: [PATCH] Fix for error when disbanding faction from server console with economy enabled --- src/com/massivecraft/factions/cmd/CmdDisband.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/cmd/CmdDisband.java b/src/com/massivecraft/factions/cmd/CmdDisband.java index 4eeb8503..be3ef4ef 100644 --- a/src/com/massivecraft/factions/cmd/CmdDisband.java +++ b/src/com/massivecraft/factions/cmd/CmdDisband.java @@ -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());