Fixed bug where you could not create factions if they cost money.

This commit is contained in:
Harry Jeffery 2011-09-24 18:08:18 +01:00
parent 2b23f93fba
commit ea8310c695
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ public class FBaseCommand {
// pay up // pay up
if (cost > 0.0) { if (cost > 0.0) {
String costString = Econ.moneyString(cost); String costString = Econ.moneyString(cost);
if(Conf.bankFactionPaysCosts) { if(Conf.bankFactionPaysCosts && me.hasFaction() ) {
if(!faction.removeMoney(cost)) { if(!faction.removeMoney(cost)) {
sendMessage("It costs "+costString+" to "+desc+", which your faction can't currently afford."); sendMessage("It costs "+costString+" to "+desc+", which your faction can't currently afford.");
return false; return false;
@ -269,7 +269,7 @@ public class FBaseCommand {
String costString = Econ.moneyString(-cost); String costString = Econ.moneyString(-cost);
if(Conf.bankFactionPaysCosts) { if(Conf.bankFactionPaysCosts && me.hasFaction() ) {
faction.addMoney(-cost); faction.addMoney(-cost);
sendMessage(faction.getTag()+" has been paid "+costString+" to "+desc+"."); sendMessage(faction.getTag()+" has been paid "+costString+" to "+desc+".");
} else { } else {