Added a "claimedLandsMax" option in config
(answering to issue "Max Faction Land" : https://github.com/MassiveCraft/Factions/issues/88 )
This commit is contained in:
@@ -580,6 +580,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
||||
{
|
||||
error = P.p.txt.parse("<b>You can't claim more land! You need more power!");
|
||||
}
|
||||
else if (ownedLand >= Conf.claimedLandsMax && Conf.claimedLandsMax != 0) {
|
||||
error = P.p.txt.parse("<b>Limit reached. You can't claim more land!");
|
||||
}
|
||||
else if (currentFaction.getRelationTo(forFaction).isAtLeast(Rel.TRUCE) && ! currentFaction.isNone())
|
||||
{
|
||||
error = P.p.txt.parse("<b>You can't claim this land due to your relation with the current owner.");
|
||||
|
||||
Reference in New Issue
Block a user