registerGuiOpened

open fun registerGuiOpened(method: Any): EventTrigger

Registers a new trigger that runs when a new gui is first opened.

Passes through one argument:

  • The gui opened event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard