mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-25 18:18:27 +01:00
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
|
||||
if (cost > 0.0) {
|
||||
String costString = Econ.moneyString(cost);
|
||||
if(Conf.bankFactionPaysCosts) {
|
||||
if(Conf.bankFactionPaysCosts && me.hasFaction() ) {
|
||||
if(!faction.removeMoney(cost)) {
|
||||
sendMessage("It costs "+costString+" to "+desc+", which your faction can't currently afford.");
|
||||
return false;
|
||||
@ -269,7 +269,7 @@ public class FBaseCommand {
|
||||
|
||||
String costString = Econ.moneyString(-cost);
|
||||
|
||||
if(Conf.bankFactionPaysCosts) {
|
||||
if(Conf.bankFactionPaysCosts && me.hasFaction() ) {
|
||||
faction.addMoney(-cost);
|
||||
sendMessage(faction.getTag()+" has been paid "+costString+" to "+desc+".");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user