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

This commit is contained in:
Brettflan 2012-11-06 11:01:21 -06:00
parent 5ad6886d46
commit 165fbe03a1

View File

@ -330,8 +330,8 @@ public abstract class FCommand extends MCommand<P>
if ( ! Econ.shouldBeUsed() || this.fme == null || cost == 0.0 || fme.isAdminBypassing()) 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);
}
}