Fix for disabled "bankEnabled" setting being ignored in some cases

Data is no longer stored for players with full power but not in a faction
This commit is contained in:
Brettflan
2011-12-18 01:33:34 -06:00
parent a9146ac27f
commit 54ba4473a2
3 changed files with 4 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ public class CmdUnclaim extends FCommand
{
double refund = Econ.calculateClaimRefund(myFaction.getLandRounded());
if(Conf.bankFactionPaysLandCosts)
if(Conf.bankEnabled && Conf.bankFactionPaysLandCosts)
{
if ( ! Econ.modifyMoney(myFaction, refund, "to unclaim this land", "for unclaiming this land")) return;
}

View File

@@ -32,7 +32,7 @@ public class CmdUnclaimall extends FCommand
if (Econ.shouldBeUsed())
{
double refund = Econ.calculateTotalLandRefund(myFaction.getLandRounded());
if(Conf.bankFactionPaysLandCosts)
if(Conf.bankEnabled && Conf.bankFactionPaysLandCosts)
{
if ( ! Econ.modifyMoney(myFaction, refund, "to unclaim all faction land", "for unclaiming all faction land")) return;
}