hidePlayer arrow problem

Discussion in 'Spigot Plugin Development' started by Senpai, May 2, 2015.

  1. So I have a problem, when someone is hidden by .hidePlayer and a player shoot with a bow, the arrow bounce on the hidden player. Doe's anyone have a solution for that?
  2. gigosaurus


    Code (Java):
    • Agree Agree x 2
  3. Thanks, I'll try that. Do you know any alternative for craftbukkit?
  4. gigosaurus


    Nope. Your best bet would be to listen for an arrow hitting one of these players with the EntityDamageByEntityEvent, and then spawn in a new arrow with the same velocity as the old one, then remove the old one.
  5. Yea, I already tried that but I don't like the result. Your method work fine thanks ^^