Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

spigot disable health regeneration

    @EventHandler
    public void onPlayerRegainHealth(EntityRegainHealthEvent event) {
        if(event.getRegainReason() == RegainReason.SATIATED || event.getRegainReason() == RegainReason.REGEN)
            event.setCancelled(true);
    }
Source by bukkit.org #
 
PREVIOUS NEXT
Tagged: #spigot #disable #health #regeneration
ADD COMMENT
Topic
Name
6+5 =