diff --git a/src/main/java/org/surf/modules/patches/IllegalDamageAndPotionCheck.java b/src/main/java/org/surf/modules/patches/IllegalDamageAndPotionCheck.java index 38bfe84..6628b9e 100644 --- a/src/main/java/org/surf/modules/patches/IllegalDamageAndPotionCheck.java +++ b/src/main/java/org/surf/modules/patches/IllegalDamageAndPotionCheck.java @@ -15,7 +15,7 @@ public class IllegalDamageAndPotionCheck implements Listener { - // Player get damage + // Entity gets damage @EventHandler(ignoreCancelled = true) public void onDamage(EntityDamageByEntityEvent event) { // Player => Entity @@ -40,18 +40,6 @@ public void onDamage(EntityDamageByEntityEvent event) { } } - // Arrow shoot by player - @EventHandler(ignoreCancelled = true) - public void onBow(EntityDamageByEntityEvent event) { - if (!(event.getDamager() instanceof Arrow)) { - return; - } - if (((Arrow) event.getDamager()).getShooter() instanceof Player damager && event.getDamage() > 40) { - event.setCancelled(true); - Utils.sendMessage(damager, ConfigCache.IllegalDamageMessage); - } - } - @EventHandler public void onLeave(PlayerQuitEvent event) { Player player = event.getPlayer();