Few tiny improvements.

This commit is contained in:
DroppingAnvil 2019-11-01 13:23:41 -05:00
parent dd02853934
commit 9c62eee5e8
2 changed files with 4 additions and 4 deletions

View File

@ -74,13 +74,13 @@ public class PowerLossEvent extends FactionPlayerEvent implements Cancellable {
* Gets the configured damage to a players individual power on death
* @return power to be lost as a Double.
*/
public Double getDefaultPowerLost() {return Conf.powerPerDeath;}
public double getDefaultPowerLost() {return Conf.powerPerDeath;}
/**
* Gets the variable power lost. Custom power ignored when less than or equal to zero.
* @return custom power to be lost as a Double.
*/
public Double getCustomPowerLost() {return this.modified;}
public double getCustomPowerLost() {return this.modified;}
/**
* Sets the variable power lost. Custom power ignored when less than or equal to zero.

View File

@ -20,10 +20,10 @@ public class PowerRegenEvent extends FactionPlayerEvent implements Cancellable {
}
/**
* Get the amount of power this player will regen
* Get the amount of power this player will regen by default
* @return power amount gained as a Double.
*/
public Double getPowerGained() {
public double getDefaultPowerGained() {
return fPlayer.getMillisPassed() * Conf.powerPerMinute / 60000;
}