-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
This server is running CraftBukkit version dev-Spigot-0a642bd-aac911d (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
-
Yes
Idea: InventoryCloseEvent to provide a reason for why the inventory was closed. In particular, allowing plugins to detect whether the player themself closed the inventory vs the inventory was closed due to some other reason (e.g. player quiting, other inventory opening, player being teleported, a plugin closing the inventory, etc.).
Possible use case: Re-open some other inventory view (think of a hierarchy of nested inventory views in a menu structure) when the player intentionally closed the current view.