Economy payments for command usage no longer ignores "bankEnabled" setting
This commit is contained in:
@@ -318,7 +318,7 @@ public abstract class FCommand extends MCommand<P>
|
|||||||
{
|
{
|
||||||
if ( ! Econ.shouldBeUsed() || this.fme == null || cost == 0.0 || fme.isAdminBypassing()) return true;
|
if ( ! Econ.shouldBeUsed() || this.fme == null || cost == 0.0 || fme.isAdminBypassing()) return true;
|
||||||
|
|
||||||
if(Conf.bankFactionPaysLandCosts && fme.hasFaction())
|
if(Conf.bankEnabled && Conf.bankFactionPaysCosts && fme.hasFaction())
|
||||||
{
|
{
|
||||||
if ( ! Econ.modifyMoney(myFaction, -cost, toDoThis, forDoingThis)) return false;
|
if ( ! Econ.modifyMoney(myFaction, -cost, toDoThis, forDoingThis)) return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user