mcmonkeyprojects / Sentinel

Combat NPCs for Spigot!
MIT License
165 stars 85 forks source link

Add targetted entity to SentinelAttackEvent for API usage #338

Closed Ineusia closed 4 years ago

Ineusia commented 4 years ago

I've expanded the API a tad bit, I'm working on a plugin that hooks into Sentinel to add combat functionality and this is necessary for me, plus this just seemed like something the event would benefit from for other developers.

mcmonkey4eva commented 4 years ago

This seems like a good idea, but the PR itself is a bit messy (JavaDocs misformatted, Entity vs LivingEntity), etc. I'm going to treat this like a feature request rather than a PR and just add it in.

https://github.com/mcmonkeyprojects/Sentinel/commit/39e1de8135bcd714616c7a0baf4a1e13c2f306f9 Available in build 348+ from https://ci.citizensnpcs.co/job/Sentinel/