Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by GravelCZLP, Jun 24, 2016.
How to i detect if the Player is pulling their bow back with packets ?
Edit:Woops, didn't see you wanted to do it with packets...
I don't think there is an event for that.
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.
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
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.