[SPIGOT-1434] InventoryChangeEvent Created: 21/Jan/16  Updated: 17/Nov/17  Resolved: 17/Nov/17

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

Type: New Feature Priority: Minor
Reporter: Meyer Zinn Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: Feature, Inventory, InventoryEvent, Spigot

Issue Links:
Duplicate
duplicates SPIGOT-1218 InventoryUpdateEvent Open

 Description   

I'd really appreciate if there was some sort of informative event that was thrown when a plugin uses Inventory#addItem() and similar methods that modify the state of an inventory. It should contain the affected inventory. This method would be useful for plugins that need to keep an inventory monitored and tag items as they are added. It's not currently achievable as far as I am aware and the only workarounds are runnables (memory intensive) or piggybacking on an event (unpredictable).



 Comments   
Comment by Meyer Zinn [ 21/Jan/16 ]

I don't think it would be too hard to implement either... when Inventory#addItem is called, it should throw this event. I don't think it's that hard but I wouldn't know.

Comment by - Pr0totype2 [ 21/Jan/16 ]

I would really love to be able to use this event. Would be really useful!

Comment by SpigotMC [ 21/Jan/16 ]

Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 0 version(s) behind. CraftBukkit is 3 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue.

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