Skip to content

Commit

Permalink
Merge pull request #134 from lynxplay/enhancement/working-mm-click-ex…
Browse files Browse the repository at this point in the history
…ample

Update minimessage format example of click command
  • Loading branch information
kezz authored Jul 17, 2023
2 parents 84ba85b + fa03268 commit c28a791
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/minimessage/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,15 @@ Arguments
* ``_action_``, the type of click event, one of `this list <https://jd.advntr.dev/api/latest/net/kyori/adventure/text/event/ClickEvent.Action.html#enum.constant.summary>`_
* ``_value_``, the argument for that particular event, refer to `the minecraft wiki <https://minecraft.gamepedia.com/Raw_JSON_text_format>`_
Examples
* :mm:`<click:run_command:/say hello>Click</click> to say hello`
* :mm:`<click:run_command:/seed>Click</click> to show the world seed!`
* :mm:`Click <click:copy_to_clipboard:Haha you suck> this </click>to copy your score!`

.. image:: /minimessage/images/click_1.png
:alt: The result of parsing ``<click:run_command:/say hello>Click</click> to say hello``, shown in-game in the Minecraft client's chat window
:alt: The result of parsing ``<click:run_command:/seed>Click</click> to show the world seed!``, shown in-game in the Minecraft client's chat window

.. warning::
Since the introduction of chat signatures in 1.19.1, the client no longer executes commands that require signed arguments
like the ``/say`` or ``/tell`` command to prevent the server from sending signed messages on the clients behalf.

Hover
*****
Expand Down
Binary file modified source/minimessage/images/click_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c28a791

Please sign in to comment.