Added new conf.json setting "powerPlayerStarting" (default 0.0) for the power level which new players will now start at; previously new players would start with max power, now it's configurable
This commit is contained in:
@@ -115,7 +115,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
||||
public FPlayer()
|
||||
{
|
||||
this.resetFactionData(false);
|
||||
this.power = this.getPowerMax();
|
||||
this.power = Conf.powerPlayerStarting;
|
||||
this.lastPowerUpdateTime = System.currentTimeMillis();
|
||||
this.lastLoginTime = System.currentTimeMillis();
|
||||
this.mapAutoUpdating = false;
|
||||
@@ -653,7 +653,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
||||
public boolean shouldBeSaved()
|
||||
{
|
||||
if (this.hasFaction()) return true;
|
||||
if (this.getPowerRounded() != this.getPowerMaxRounded()) return true;
|
||||
if (this.getPowerRounded() != this.getPowerMaxRounded() && this.getPowerRounded() != (int) Math.round(Conf.powerPlayerStarting)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user