Detect if the Player is pulling their bow back

Discussion in 'Spigot Plugin Development' started by GravelCZLP, Jun 24, 2016.

  1. How to i detect if the Player is pulling their bow back with packets ?
     
  2. I don't think there is an event for that.
     
  3. He never mentioned anything about an event. He mentioned that he would like to do so with packets, however there are ways of doing it with events, as the tutorial I linked mentions.
     
  4. That thread you linked to is just the playerInteractEvent.

    What I meant, is there is no event that triggers when the bow is pulled all the way
    back. The code snippet in that thread says "It Worked" as soon as you right click
    with a bow in your hand.

    Which means that it will say "It Worked" whether you have an arrow to shoot
    or not.
     
  5. Yeah, but if they shoot their bow, it will still be considered pulling their bow, which is why you need to check when they actually shoot the arrow and remove them from the List. It's more than just PlayerInteractEvent.