Json help

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

varboosted

Active Member
Apr 20, 2020
50
3
8
24
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
 
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
 
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
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.
 
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/")
 
Not works..
I installed json.sk in scripts folder
then created a new skript called store2.sk
View attachment 4586
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/")
Are you indenting correctly?
 
Not works..
I installed json.sk in scripts folder
then created a new skript called store2.sk
View attachment 4586
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/")
don't forget the ''TAB'' in your codes (tab = 4 spaces):

Code:
trigger:
    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
 
Are you indenting correctly?
Yes
[doublepost=1587843847,1587843708][/doublepost]
don't forget the ''TAB'' in your codes (tab = 4 spaces):

Code:
trigger:
    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
Unknown command:

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