kernitus / BukkitOldCombatMechanics

Spigot plugin to configure combat mechanics from 1.9 onwards
https://www.spigotmc.org/resources/19510/
Mozilla Public License 2.0
168 stars 71 forks source link

Enderpearl isnt working properly #562

Closed mariagomezjs closed 2 years ago

mariagomezjs commented 2 years ago

Information

Problem Description

Enderpearl isnt working properly with default configuration, users who use enderpearls, they are supposed to take damage (5 dmg / 2.5 hearts). I know that this config exist:

projectile-knockback:
  enabled: true
  worlds: []
  damage:
    snowball: 0.0001
    egg: 0.0001
    ender_pearl: 0.0001 <---

But if I modify this one, it will hurt to someone who is hit by that enderpearl aswell, this means both players will get the dmg, instead of the one that is throwing it.

To Reproduce

Steps to reproduce the behavior:

  1. Download the plugin
  2. Put in the plugin folder, with default config
  3. Try to use enderpearl in survival mode
kernitus commented 2 years ago

Can you please enable debug mode in the config and provide the damage outputs when an enderpearl is launched?

mariagomezjs commented 2 years ago

When I throw the enderpearl: when someone throw enderpearl

When someone is hit by an enderpearl: when someone hit you with enderpearl

kernitus commented 2 years ago

Wait, that's for the wrong module - is there no output about the actual damage done and taken?

mariagomezjs commented 2 years ago

Nope, that's the only thing that I get when doing it.

kernitus commented 2 years ago

Fixed with 1df299b