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:
Brettflan 2011-06-01 06:54:00 -05:00
parent 29469b0d27
commit 996acdc4fb
2 changed files with 3 additions and 2 deletions

View File

@ -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 = "*";

View File

@ -326,7 +326,7 @@ public class FPlayer {
}
protected void updatePower() {
if (this.isOffline()) {
if (this.isOffline() && !Conf.powerRegenOffline) {
return;
}
long now = System.currentTimeMillis();