From 4c08041ee605339ca49627f40466a419a2107f47 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Thu, 17 Mar 2022 20:58:12 +0100 Subject: [PATCH] better names for methods --- .../listeners/mount/MountHitByExplosionListener.java | 2 +- .../listeners/mount/MountHitByFireworkListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByExplosionListener.java b/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByExplosionListener.java index 2ab0935..891c794 100644 --- a/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByExplosionListener.java +++ b/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByExplosionListener.java @@ -15,7 +15,7 @@ public class MountHitByExplosionListener implements Listener { @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) - public void onPlayerAttackMount(org.bukkit.event.entity.EntityDamageByEntityEvent event) { + public void onMountHitByExplosion(org.bukkit.event.entity.EntityDamageByEntityEvent event) { if (!(event.getDamager() instanceof Player) || event.getEntity().getPassengers().isEmpty()) return; if (!event.getCause().equals(EntityDamageEvent.DamageCause.ENTITY_EXPLOSION)) return; UUID damager = event.getDamager().getUniqueId(); diff --git a/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByFireworkListener.java b/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByFireworkListener.java index 13889fe..405ff07 100644 --- a/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByFireworkListener.java +++ b/src/main/java/me/youhavetrouble/preventstabby/listeners/mount/MountHitByFireworkListener.java @@ -16,7 +16,7 @@ public class MountHitByFireworkListener implements Listener { @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) - public void onPlayerAttackMount(org.bukkit.event.entity.EntityDamageByEntityEvent event) { + public void onMountHitByFireWork(org.bukkit.event.entity.EntityDamageByEntityEvent event) { if (!(event.getDamager() instanceof Firework) || event.getEntity().getPassengers().isEmpty()) return; if (!event.getCause().equals(EntityDamageEvent.DamageCause.ENTITY_EXPLOSION)) return; Firework firework = (Firework) event.getDamager();