Solved Check if player is blocking with sword entity damage event?

Discussion in 'Spigot Plugin Development' started by danablend, Jun 18, 2016.

  1. I want to check if the player getting damaged is blocking with his sword (Holding right click with sword in hand), if so, reduce the damage. How can I check if he is blocking with sword/holding right click?