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:
parent
a330931cd5
commit
19b9bffc43
@ -118,6 +118,8 @@ public class Conf
|
|||||||
|
|
||||||
//public static boolean peacefulMembersDisablePowerLoss = true;
|
//public static boolean peacefulMembersDisablePowerLoss = true;
|
||||||
|
|
||||||
|
public static boolean permanentFactionsDisableLeaderPromotion = false;
|
||||||
|
|
||||||
public static boolean claimsMustBeConnected = false;
|
public static boolean claimsMustBeConnected = false;
|
||||||
public static boolean claimsCanBeUnconnectedIfOwnedByOtherFaction = true;
|
public static boolean claimsCanBeUnconnectedIfOwnedByOtherFaction = true;
|
||||||
public static int claimsRequireMinFactionMembers = 1;
|
public static int claimsRequireMinFactionMembers = 1;
|
||||||
|
@ -431,6 +431,7 @@ public class Faction extends Entity implements EconomyParticipator
|
|||||||
public void promoteNewLeader()
|
public void promoteNewLeader()
|
||||||
{
|
{
|
||||||
if (! this.isNormal()) return;
|
if (! this.isNormal()) return;
|
||||||
|
if (this.getFlag(FFlag.PERMANENT) && Conf.permanentFactionsDisableLeaderPromotion) return;
|
||||||
|
|
||||||
FPlayer oldLeader = this.getFPlayerLeader();
|
FPlayer oldLeader = this.getFPlayerLeader();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user