registerGuiKey

open fun registerGuiKey(method: Any): EventTrigger

Registers a new trigger that runs whenever a key is typed with a gui open

Passes through four arguments:

  • The character pressed (e.g. 'd')

  • The key code pressed (e.g. 41)

  • The gui

  • The 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