allowSave

abstract fun allowSave(event: InventoryCloseEvent): Boolean

Determines if the inventory should be saved when closed.

Return

true if the inventory should be saved, false otherwise

Since

2.0.0

Parameters

event

The inventory close event