Answers for "spigot disable health regeneration"

0

spigot disable health regeneration

@EventHandler
    public void onPlayerRegainHealth(EntityRegainHealthEvent event) {
        if(event.getRegainReason() == RegainReason.SATIATED || event.getRegainReason() == RegainReason.REGEN)
            event.setCancelled(true);
    }
Posted by: Guest on February-07-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language