Configuration/Use shortcuts to create Clickable or hoverable messages

 

Use shortcuts to create Clickable or hoverable messages

 

You can create what I named 'shortcuts' to create some clickable or hoverable messages without directly using JSON format in your message's text.

 

  1. Get into the file shortcuts.yml and add:

shortcuts.yml

      example:                                                   # The name of your shortcut

     |       text: "Click on me :)"                          # Text to display of your shortcut

     |       clicklink: "https://google.com"       #  Link to go if clicked

     |       hovertext: "Let's go on google !"   # Text to show when cursor on text

  2. Get into the file announces.yml and edit:

announces.yml

  |  example:

  |         message: "Your message here %<name of the shortcut>


There are different option to create a nice shortcut:

  • clicklink: <link>                                |    The player get on a internet site when clicked
  • clickcmd: <cmd> (without '/ ')        |    The player execute a commande when clicked
  • clickmsg: <msg>                             |    The player tell a message in the chat when clicked
  • hovertext: <text>                            |    Show a text when cursor in on the shortcut's text

 


See also