mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-22 10:15:51 +01:00
Added powerRegenOffline option for those who for whatever reason want player power to regenerate even when they are offline; increased default power loss from death from 2 to 4
This commit is contained in:
parent
29469b0d27
commit
996acdc4fb
@ -25,7 +25,8 @@ public class Conf {
|
||||
public static double powerPlayerMax = 10;
|
||||
public static double powerPlayerMin = -10;
|
||||
public static double powerPerMinute = 0.2; // Default health rate... it takes 5 min to heal one power
|
||||
public static double powerPerDeath = 2; //A death makes you loose 2 power
|
||||
public static double powerPerDeath = 4; // A death makes you lose 4 power
|
||||
public static boolean powerRegenOffline = false; // does player power regenerate even while they're offline?
|
||||
|
||||
public static String prefixAdmin = "**";
|
||||
public static String prefixMod = "*";
|
||||
|
@ -326,7 +326,7 @@ public class FPlayer {
|
||||
}
|
||||
|
||||
protected void updatePower() {
|
||||
if (this.isOffline()) {
|
||||
if (this.isOffline() && !Conf.powerRegenOffline) {
|
||||
return;
|
||||
}
|
||||
long now = System.currentTimeMillis();
|
||||
|
Loading…
Reference in New Issue
Block a user