Answers for "bukkit disable fire spreading"

0

spigot disable join message

@EventHandler
public void onJoin(PlayerJoinEvent e) {
  e.setJoinMessage("");
}
Posted by: Guest on May-23-2020
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