[SPIGOT-7815] No Events Exist For Wolf Armor Created: 04/Jul/24  Updated: 25/Dec/24  Resolved: 05/Jul/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Going Assignee: Doc
Resolution: Fixed Votes: 0
Labels: None

Version: -
Guidelines Read: Yes

 Description   

I tried creating a way to stop people from damaging dog armor on people dogs using a claim plugin called Grief Defender. I asked the plugin creator and he said 

"Spigot has not added any events that I see for Wolf Armor.
 
{{if (this.count == 1 && entityliving instanceof EntityHuman)

{ org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerItemBreakEvent((EntityHuman) entityliving, this); }

}}They only call the item damage/break events for player"
Right now there is no way to protect dog armor from being damaged using any plugin from my understand without this event.



 Comments   
Comment by Doc [ 04/Jul/24 ]

Created PR for allow the canceled event for damage entity not damage the armor of wolfs.

https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/1444/overview

 

Comment by Doc [ 04/Jul/24 ]

Maybe can be good handle the EntityDamageEvent for cancel that damage based in how the damage to wolf first try damage the armor based in tags and if not the wolf... That or like suggest the ticket al ItemBreakEvent for non players

Generated at Tue Apr 08 01:38:18 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.