DolphinsWithGills
PluginMIT

DolphinsWithGills

Prevents dryout and drowning damage for dolphins

130
Downloads
4
Followers
2 years ago
Updated
📦
1
Versions

📖About DolphinsWithGills

A simple plugin that prevents dryout and drowning damage for dolphins

    @EventHandler
    public void onEntityDamage(EntityDamageEvent event) {
        if (event.getEntityType() != EntityType.DOLPHIN) return;
        DamageCause cause = event.getCause();
        if (cause == DamageCause.DROWNING) event.setCancelled(true);
        if (cause == DamageCause.DRYOUT) event.setCancelled(true);
    }