Minor touches to the Econ integration

This commit is contained in:
Olof Larsson
2013-04-19 09:50:33 +02:00
parent 1df5638903
commit 2f8f0713e8
26 changed files with 223 additions and 140 deletions

View File

@@ -50,7 +50,7 @@ public abstract class CmdFactionsRelationAbstract extends FCommand
}
// if economy is enabled, they're not on the bypass list, and this command has a cost set, make 'em pay
if ( ! payForCommand(targetRelation.getRelationCost(), "to change a relation wish", "for changing a relation wish")) return;
if (!payForCommand(targetRelation.getRelationCost())) return;
// try to set the new relation
Rel oldRelation = myFaction.getRelationTo(them, true);