[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 |