This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi,
Sorry for my english. It's not my native language.
I want to correct this :
@EventHandler public void onHorseHurt(EntityDamageEvent e) { if ((e.getCause() == EntityDamageEvent.DamageCause.ENTITY_EXPLOSION) || ((e.getCause() == EntityDamageEvent.DamageCause.BLOCK_EXPLOSION) && (getConfig().getBoolean("disableHorseExplosionDamage")))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.DROWNING) && (getConfig().getBoolean("disableHorseDrowningDamage"))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.WITHER) && (getConfig().getBoolean("disableHorseWitherDamage"))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.LAVA) && (getConfig().getBoolean("disableHorseLavaDamage"))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.FIRE) || ((e.getCause() == EntityDamageEvent.DamageCause.FIRE_TICK) && (getConfig().getBoolean("disableHorseFireDamage")))) e.setCancelled(true); } }
to that :
@EventHandler public void onHorseHurt(EntityDamageEvent e) { Entity damaged = e.getEntity(); if ((damaged instanceof Horse)) { Horse h = (Horse)e.getEntity(); if (h.isTamed()) if ((e.getCause() == EntityDamageEvent.DamageCause.ENTITY_EXPLOSION) || ((e.getCause() == EntityDamageEvent.DamageCause.BLOCK_EXPLOSION) && (getConfig().getBoolean("disableHorseExplosionDamage")))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.DROWNING) && (getConfig().getBoolean("disableHorseDrowningDamage"))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.WITHER) && (getConfig().getBoolean("disableHorseWitherDamage"))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.LAVA) && (getConfig().getBoolean("disableHorseLavaDamage"))) e.setCancelled(true); else if ((e.getCause() == EntityDamageEvent.DamageCause.FIRE) || ((e.getCause() == EntityDamageEvent.DamageCause.FIRE_TICK) && (getConfig().getBoolean("disableHorseFireDamage")))) e.setCancelled(true); } }
I see your plugin don't have update since August. Can i have access to the plugin for maintain it ?
because : "everyone can safely update there plugins and we all can be happy".
Thank you for reading... have a good day.
To post a comment, please login or register a new account.