Solved Clickable chat 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.

lundt6580

New Member
Mar 30, 2021
9
0
1
23
Hi,
I am currently making a Skyblock server where i need to make clickable text in the chat. My code works on my other server but not on this one. I have Skript.jar, skQuery.jar, skRayFall.jar and skript-json.jar. The server is made through an FTP server since its a free server host like minehut.com. The server is in version 1.8.9, unfortunately I can't change that.

Here is my code:
Code:
command /test:
    trigger:
        send "<open url:https://google.com>&a&l[CLICK HERE]<reset>" to player

This is my output in game:
Image

Thanks!
[doublepost=1617205807,1617122314][/doublepost]Hi,
I just removed it and now the players click on the link that comes up in chat.
 
So is it working now?

No, I couldn't figure out how to do it so I found another solution. I send the link in chat, then players can click on it and it will take them to the website. I would still like to know how and then try it out since it would make my server better.

It displays like this in the chat:
https://ibb.co/R6WTd4W

I would like it to be displayed like this:
https://ibb.co/BgDHDMz
Here you click on the text and it opens up the website.
R6WTd4W
 
Last edited:
No, I couldn't figure out how to do it so I found another solution. I send the link in chat, then players can click on it and it will take them to the website. I would still like to know how and then try it out since it would make my server better.

It displays like this in the chat:
https://ibb.co/R6WTd4W

I would like it to be displayed like this:
https://ibb.co/BgDHDMz
Here you click on the text and it opens up the website.
R6WTd4W
Code:
send "<url:https://google.com>&a&l[CLICK HERE]<reset>" to player
This should show up in chat "&a&l[CLICK HERE]", not the link.
 
Hi, I tried all of the above and using Skript-2.2-Dev36 didn't work. When using Skript-2.2-Dev36 none of my custom commands worked. Thanks for all the help but I give up :emoji_frowning:
[doublepost=1619258902,1618063875][/doublepost]Hi everyone! I managed to figure it out myself! I used the /tellraw @a command,

Code:
every 10,2 minutes:
    execute console command "/tellraw @a [{""text"":""SERVERNAME"",""color"":""aqua""},{""text"":"" »"",""color"":""dark_gray""},{""text"":"" Join our Discord!"",""color"":""aqua"",""hoverEvent"":{""action"":""show_text"",""value"":[]}},{""text"":"" [CLICK HERE]"",""bold"":true,""color"":""green"",""clickEvent"":{""action"":""open_url"",""value"":""DISCORD CODE""},""hoverEvent"":{""action"":""show_text"",""value"":[]}},{""text"":"" to get an invitation!"",""color"":""aqua""}]"

Hopes this can help others out! Remember to use double quotes!
 
You shouldn’t use console commands though, try uninstalling skript-json and using this method
Code:
send "<url:https://google.com>&a&l[CLICK HERE]<reset>" to player
This should show up in chat "&a&l[CLICK HERE]", not the link.
 
This is very weird indeed. Maybe it’s because you’re on 1.8? Idek anymore.

EDIT: Actually, its not <url>, it’s <link>. Try that
 
Status
Not open for further replies.