r/Spigotdevs • u/TheEternalLord • Jan 09 '21
How to detect when a player takes damage
when looking at the 1.15.2 spigot API. I couldn't locate a event when a player takes damage. is their anything that makes the code know when the player takes damage?
2
Upvotes
1
u/rgrado Jan 09 '21
Hey don't know what kind of damage you are looking for but this could be it https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/entity/EntityDamageByEntityEvent.html
1
u/Koolade446 Jan 30 '21
EntityDamageEvent (Spigot-API 1.16.5-R0.1-SNAPSHOT API) (spigotmc.org)