[SPIGOT-5644] EntityEquipmentEvent Created: 28/Mar/20  Updated: 12/Apr/20

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

Type: New Feature Priority: Minor
Reporter: Collin Barber Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: spigot

Version: 1.15.2
Guidelines Read: Yes

 Description   

I'm aware that this has been suggested before in the form of the ArmorEquipEvent. There are many issues with using InventoryClickEvent. Let me list them

  1. Dispensers can equip armor
  2. LivingEntities can equip armor
  3. Players can right click (while holding armor)
  4. Players can shift click/drag/whatever (More cases to test for)
  5. Armor can break
  6. Players can die and unequip armor

An EntityEquipmentEvent should contain the LivingEntity involved, the slot that has been changed (Offhand, mainhand, head, boots, etc), the old itemstack, and the new itemstack. Although it makes sense to make it cancellable, it would be annoying to implement because of all the different ways armor can be changed listed above.



 Comments   
Comment by TheCreeperCow [ 12/Apr/20 ]

Related to CraftBukkit PR #652 and Bukkit PR #487

Comment by TheCreeperCow [ 12/Apr/20 ]

Im interested in this gonna start working on it. 

Generated at Sat Dec 13 15:25:15 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.