Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7807

InventoryCloseEvent reason

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor 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.

            Unassigned Unassigned
            blablubbabc blablubbabc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: