allowClose

Sets whether the GUI can be closed by the player.

Parameters

allow

If true, the player can close the GUI. If false, attempts to close the GUI will be ignored and the GUI will remain open until closed programmatically. The default is true.