Few tiny improvements.
This commit is contained in:
parent
dd02853934
commit
9c62eee5e8
@ -74,13 +74,13 @@ public class PowerLossEvent extends FactionPlayerEvent implements Cancellable {
|
|||||||
* Gets the configured damage to a players individual power on death
|
* Gets the configured damage to a players individual power on death
|
||||||
* @return power to be lost as a Double.
|
* @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.
|
* Gets the variable power lost. Custom power ignored when less than or equal to zero.
|
||||||
* @return custom power to be lost as a Double.
|
* @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.
|
* Sets the variable power lost. Custom power ignored when less than or equal to zero.
|
||||||
|
@ -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.
|
* @return power amount gained as a Double.
|
||||||
*/
|
*/
|
||||||
public Double getPowerGained() {
|
public double getDefaultPowerGained() {
|
||||||
return fPlayer.getMillisPassed() * Conf.powerPerMinute / 60000;
|
return fPlayer.getMillisPassed() * Conf.powerPerMinute / 60000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user