Package org.strassburger.lifestealz.util
Class MaxHeartsManager
java.lang.Object
org.strassburger.lifestealz.util.MaxHeartsManager
Utility class to manage the maximum number of hearts a player can have.
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
getMaxHearts
(org.bukkit.entity.Player player, org.bukkit.configuration.file.FileConfiguration config) Returns the maximum number of hearts a player can have.
-
Method Details
-
getMaxHearts
public static double getMaxHearts(org.bukkit.entity.Player player, org.bukkit.configuration.file.FileConfiguration config) Returns the maximum number of hearts a player can have.- Parameters:
player
- the player to checkconfig
- the LifeStealZ main configuration- Returns:
- the maximum number of hearts the player can have
-