New conf.json setting "newPlayerStartingFactionID" which can be used to have new players start out in a specific faction
This commit is contained in:
parent
877cfe914d
commit
249846d6ae
@ -39,6 +39,9 @@ public class Conf {
|
||||
|
||||
public static boolean newFactionsDefaultOpen = true;
|
||||
|
||||
// what faction ID to start new players in when they first join the server; default is 0, "no faction"
|
||||
public static int newPlayerStartingFactionID = 0;
|
||||
|
||||
public static boolean showMapFactionKey = true;
|
||||
public static boolean showNeutralFactionsOnMap = true;
|
||||
public static boolean showEnemyFactionsOnMap = true;
|
||||
|
@ -67,6 +67,10 @@ public class FPlayer {
|
||||
this.autoSafeZoneEnabled = false;
|
||||
this.autoWarZoneEnabled = false;
|
||||
this.loginPvpDisabled = (Conf.noPVPDamageToOthersForXSecondsAfterLogin > 0) ? true : false;
|
||||
|
||||
if (Conf.newPlayerStartingFactionID > 0 && Faction.exists(Conf.newPlayerStartingFactionID)) {
|
||||
this.factionId = Conf.newPlayerStartingFactionID;
|
||||
}
|
||||
}
|
||||
|
||||
public void resetFactionData() {
|
||||
|
Loading…
Reference in New Issue
Block a user