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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Json help

Discussion in 'Skript' started by varboosted, Apr 23, 2020.

Thread Status:
Not open for further replies.
  1. varboosted

    varboosted Active Member

    Joined:
    Apr 20, 2020
    Messages:
    50
    Likes Received:
    3
    Hello how can i make a skript message with Json that when you click message it goes to a site?



    Tried this not working overall (i know its not for a site)
    command /store:
    trigger:
    message "<tooltip:hello world>Hover me for a tooltip!<reset>" upload_2020-4-23_19-27-23.png
     
  2. Dave

    Dave Active Member

    Joined:
    Jul 20, 2018
    Messages:
    228
    Likes Received:
    9
    Install json.sk (https://forums.skunity.com/resources/json-sk.23/) and then
    json("%player%", "text without json|| text with json||ttp:Hello world")

    json("%player%", "text without json|| text with json||ttp:Hello world||cmd/say hello world")

    json("%player%", "&650% OFF &ain Life-Time ranks:|| &6[Click]||ttp:Click to open url||url:https://yourstore.com/")

    you can add more by inserting '' || ''

    ttp = hoveralble tooltip
    cmd= runnable command
    url = clickable open url
    sgt: suggest command
     
  3. varboosted

    varboosted Active Member

    Joined:
    Apr 20, 2020
    Messages:
    50
    Likes Received:
    3
    How can i download json.sk
    just put it into scripts folder?
     
  4. Dave

    Dave Active Member

    Joined:
    Jul 20, 2018
    Messages:
    228
    Likes Received:
    9
    here's the link, just like another skript https://forums.skunity.com/resources/json-sk.23/
    and yeah, just drop it in your scripts folder.
     
  5. varboosted

    varboosted Active Member

    Joined:
    Apr 20, 2020
    Messages:
    50
    Likes Received:
    3
    Not works..
    I installed json.sk in scripts folder
    then created a new skript called store2.sk
    upload_2020-4-25_14-26-32.png
    when i'm writing /store or /json nothing happens
    i wrote this in store2.sk
    command /store [<text>]:
    trigger:
    json("%player%", "&650% OFF &ain Life-Time ranks:|| &6[Click]||ttp:Click to open url||url:https://yourstore.com/")
     
  6. BaeFell

    BaeFell I'm Poppy
    Admin

    Joined:
    Nov 27, 2016
    Messages:
    940
    Likes Received:
    228
    Are you indenting correctly?
     
  7. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    I'm the admin now
     
  8. Dave

    Dave Active Member

    Joined:
    Jul 20, 2018
    Messages:
    228
    Likes Received:
    9
    don't forget the ''TAB'' in your codes (tab = 4 spaces):

    Code (Text):
    1. trigger:
    2.     json("%player%", "&650% OFF &ain Life-Time ranks:|| &6[Click]||ttp:Click to open url||url:https://yourstore.com/")
    Also, change ''json'' to ''1json'', idk if this makes a difference but I think it get a higher priority
     
  9. varboosted

    varboosted Active Member

    Joined:
    Apr 20, 2020
    Messages:
    50
    Likes Received:
    3
    Yes
    --- Double Post Merged, Apr 25, 2020, Original Post Date: Apr 25, 2020 ---
    Unknown command:

    command /store:
    trigger:
    json("%player%", "&650% OFF &ain Life-Time ranks:|| &6[Click]||ttp:Click to open url||url:https://yourstore.com/")
     
Thread Status:
Not open for further replies.

Share This Page

Loading...