allowSave

fun allowSave(block: (event: InventoryCloseEvent) -> Boolean)

Sets the condition for allowing inventory save.

Since

2.0.0

Parameters

block

The condition block that determines if save is allowed