From ea8310c695823c4888dd8642db3fe3a4e4aa00d8 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 24 Sep 2011 18:08:18 +0100 Subject: [PATCH] Fixed bug where you could not create factions if they cost money. --- src/com/massivecraft/factions/commands/FBaseCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/commands/FBaseCommand.java b/src/com/massivecraft/factions/commands/FBaseCommand.java index 7ebd78e3..7ae3ba31 100644 --- a/src/com/massivecraft/factions/commands/FBaseCommand.java +++ b/src/com/massivecraft/factions/commands/FBaseCommand.java @@ -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 {