commit
014815d227
@ -8,6 +8,7 @@ import java.util.concurrent.ConcurrentSkipListSet;
|
|||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.GameMode;
|
import org.bukkit.GameMode;
|
||||||
|
import org.bukkit.entity.Damageable;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
@ -464,7 +465,8 @@ public class PlayerUtil extends EngineAbstract
|
|||||||
|
|
||||||
public static double getMaxHealth(Player player)
|
public static double getMaxHealth(Player player)
|
||||||
{
|
{
|
||||||
return player.getMaxHealth();
|
Damageable d = (Damageable) player;
|
||||||
|
return d.getMaxHealth();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static double getMaxHealthDefault(Player player)
|
public static double getMaxHealthDefault(Player player)
|
||||||
|
Loading…
Reference in New Issue
Block a user