Fixed bug where you could not create factions if they cost money.
This commit is contained in:
parent
2b23f93fba
commit
ea8310c695
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user