Name | <ElementTag.on_click[<command>]> |
Returns | ElementTag |
Description | Adds a click command to the element, which makes the element execute the input command when clicked.
To execute a command "/" should be used at the start. Otherwise, it will display as chat. For example: - narrate "You can <element[click here].on_click[wow]> to say wow!" For example: - narrate "You can <element[click here].on_click[/help]> for help!" Note that this is a magic Denizen tool - refer to Denizen Text Formatting. |
Group | text manipulation |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/bukkit/BukkitElementProperties.java#L472 |