Solved Fishing Rod Cast Event?

Discussion in 'Plugin Development' started by Tice, Aug 6, 2014.

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

    Tice

    Hi, I'm looking to get the player that is hit by the fishing rod. What events can I use in order to accomplish this?
     
  2. Offline

    MrDynamo

    I would assume a player damage event, check the cause to see if it's equal to fishing rod?
     
  3. Offline

    Tice

    Well, the problem with that is that, in order to compare the cause, you compare it to an enum (I think).
     
  4. Offline

    Garris0n

    It calls the PlayerFishEvent.

    Edit: If you want it when it hits the player, then the EntityDamageByEntityEvent is indeed what you're looking for.
     
  5. Offline

    Tice

    Yes, I want it when it hits the player. And, for EntityDamageByEntityEvent, I don't know how to check if it was the fishing rod, neither do I know how to get the fishing rod caster. (This is my problem.)
     
Thread Status:
Not open for further replies.

Share This Page