1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send message Skript.

Discussion in 'Requests' started by Computerize, Nov 12, 2019.

  1. Computerize

    Computerize Member

    Joined:
    Oct 10, 2019
    Messages:
    11
    Likes Received:
    0
    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
     
  2. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    195
    Likes Received:
    18
    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 (Skript):
    1. send formatted "<tooltip:Example><cmd:/spawn>Test" to player
    2. 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 (Skript):
    1. send "<tooltip:Example><cmd:/spawn>Test" to player
    2. 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/)
     
    #2 AsuDev, Nov 12, 2019
    Last edited: Nov 12, 2019
Loading...