Solved Inventory closing

Discussion in 'Spigot Plugin Development' started by TheWolvesKing, Feb 9, 2020.

  1. Hi guys,
    I have a question on inventory closing.
    There is an event called "InventoryCloseEvent" that represents the closing of an inventory.
    Is this event fired only when a player closes an inventory or also when I use the player.closeInventory() method?
    Thank you in advance
  2. I think is whenever a player coses an inventory and it doesn't care about how it got closed
  3. InventoryCloseEvent will be called by Player#closeInventory, yes.
    • Agree Agree x 1