onClose

fun onClose(action: InventoryCloseEvent.() -> Unit)

Set the action to be executed when the inventory is closed