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:16 -06:00
parent a783dc33cf
commit 3055e68e86

View File

@ -434,8 +434,8 @@ public abstract class FCommand extends MCommand<P>
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);
}
}