New conf.json setting "permanentFactionsDisableLeaderPromotion" (default false) which, if enabled, will circumvent the promotion routine for permanent factions so that they can exist without a faction leader, only regular members and/or officers.

This commit is contained in:
Brettflan 2012-01-18 21:21:26 -06:00
parent a330931cd5
commit 19b9bffc43
2 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,8 @@ public class Conf
//public static boolean peacefulMembersDisablePowerLoss = true;
public static boolean permanentFactionsDisableLeaderPromotion = false;
public static boolean claimsMustBeConnected = false;
public static boolean claimsCanBeUnconnectedIfOwnedByOtherFaction = true;
public static int claimsRequireMinFactionMembers = 1;

View File

@ -431,6 +431,7 @@ public class Faction extends Entity implements EconomyParticipator
public void promoteNewLeader()
{
if (! this.isNormal()) return;
if (this.getFlag(FFlag.PERMANENT) && Conf.permanentFactionsDisableLeaderPromotion) return;
FPlayer oldLeader = this.getFPlayerLeader();