How to make clickable text?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

notblueblob67

Member
Sep 13, 2019
40
1
0
Hi all

So I might be making a /freeze type-thing like PVP Practice servers tend to use, where it freezes the player and tells them to go to the Teamspeak, Discord etc. to talk to staff.

I need to make the Discord invite link clickable so they can use the invite, but idk how to add clickable text.

All help is appreciated, thanks
 
In most cases this formatting will work:
Code:
message "<link:https://www.discord.com>&b&lClickable<reset> &e&lNot Clickable"
But if you want to use variables in your link use this:
Code:
{_link} = "https://www.youtube.com"
message formatted "<link:%{_link}%>&b&lClickable<reset> &e&lNot Clickable"

You can also use
Code:
<ttp:text here>
for the text to display a message when hovered over.
 
In most cases this formatting will work:
Code:
message "<link:https://www.discord.com>&b&lClickable<reset> &e&lNot Clickable"
But if you want to use variables in your link use this:
Code:
{_link} = "https://www.youtube.com"
message formatted "<link:%{_link}%>&b&lClickable<reset> &e&lNot Clickable"

You can also use
Code:
<ttp:text here>
for the text to display a message when hovered over.
Thanks

Can u give a full example with it? I only need it so the text will open the link. Thanks
 
Status
Not open for further replies.