Enderpearl HitPlayerEvent

Discussion in 'Plugin Development' started by The Fancy Whale, Nov 2, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    The Fancy Whale

    Anybody know of a way to track if an enderpearl hits a player? I believe projectilehitevent is called when the projectile hits a block not a player. However, I don't believe entitydamagebyentity event works because I don't think that ender pearls damage players. All that being said, if you know how to check if an ender pearl hits a player it would be greatly appreciated! Thanks!
     
  2. Offline

    TheCodingCat

    listen for player damage event and check if the cause is an enderpearl hit (If available)
     
    The Fancy Whale likes this.
  3. Offline

    Konato_K

    Well, snowballs don't do damage either but they fire EntityDamageByEntityEvent, you should try your theories :p

    Just listen for it and check if the damager is instance of an ender pearl
     
    The Fancy Whale likes this.
  4. Offline

    The Fancy Whale

    Konato_K TheCodingCat Thanks for the ideas. Later today I will try EntityDamageByEntityEvent and see if it fires when someone is hit with an ender pearl.
     
Thread Status:
Not open for further replies.

Share This Page