[SPIGOT-7436] Add "InventoryChangeEvent" to spigot Created: 20/Jul/23  Updated: 25/Dec/24

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

Type: New Feature Priority: Minor
Reporter: morice Assignee: coll1234567
Resolution: Unresolved Votes: 0
Labels: inventory

Version: 1.20.1
Guidelines Read: Yes

 Description   

So, vanilla minecraft has an advancement trigger for when the content of a players inventory were changed, and it would be very nice to have this within the spigot-api aswell, like a InventoryChangeEvent.

Some methods this may include:

Player getPlayer();

List<ItemStack> getPreviousContent();

List<ItemStack> getNewContent();

ChangeReason getChangeReason(); // if the event was triggered by dropping items, collecting, taking out of other inv, command, plugin etc

Generated at Fri Mar 14 09:44:35 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.