Send message Skript.

  • 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!

Computerize

Member
Oct 10, 2019
38
0
0
23
Can someone show me how to make a link clickable to open the website (use example website as discord.gg) and execute commands clicking text in chat (use example command /spawn) I have most needed skript addons and if anyone has a link to any resources that can help me learn this stuff that would be great. If there are also any other chat functions that I might need in the future please explain them to me and show me how it works. Thanks
 
These are the ones I know of:
<sgt:/suggest> Suggests a command to a player
<tooltip:Hi> Hoverable text on text
<link:https://example.com> Sends clickable link (not sure on this one, if it doesn't work, try <url:>)
<cmd:/spawn> Executes command on click

If you are using Skript 2.3.7+ you need to use this (Examples):
code_language.skript:
send formatted "<tooltip:Example><cmd:/spawn>Test" to player
send formatted "<sgt:/spawn><link:https://youtube.com>Test" to player

For Skript 2.3.6 and under you just use normal send. I am not sure what version the new json chat formatting was added though.
code_language.skript:
send "<tooltip:Example><cmd:/spawn>Test" to player
send "<sgt:/spawn><link:https://youtube.com>Test" to player

If none of this works, you probably aren't using a Skript version that is compatible with the newer chat formatting. If this is the case, and you do not want to change Skript versions, use json.sk (https://forums.skunity.com/resources/json-sk.23/)
 
Last edited: