From 3055e68e86b6336cf05e60ad7e189fda2aa3e8de Mon Sep 17 00:00:00 2001 From: Brettflan Date: Tue, 6 Nov 2012 11:01:16 -0600 Subject: [PATCH] fix for economy check that made sure player/faction could afford specific commands not working correctly; thanks to spaceemotion for pointing out the problem and fix --- src/com/massivecraft/factions/cmd/FCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/cmd/FCommand.java b/src/com/massivecraft/factions/cmd/FCommand.java index ddc5e77e..6b5bd54a 100644 --- a/src/com/massivecraft/factions/cmd/FCommand.java +++ b/src/com/massivecraft/factions/cmd/FCommand.java @@ -434,8 +434,8 @@ public abstract class FCommand extends MCommand

if ( ! Econ.shouldBeUsed() || this.fme == null || cost == 0.0 || fme.hasAdminMode()) return true; if(Conf.bankEnabled && Conf.bankFactionPaysCosts && fme.hasFaction()) - return Econ.hasAtLeast(myFaction, -cost, toDoThis); + return Econ.hasAtLeast(myFaction, cost, toDoThis); else - return Econ.hasAtLeast(fme, -cost, toDoThis); + return Econ.hasAtLeast(fme, cost, toDoThis); } }