Answers for "turn offf tnt spigot"

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
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