As in, say I run /team invite <player> and they receive the message "<player> invited you to their team! Type /team accept <player> or click here to accept" How would I make the "click here" text run a command?
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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
json("%player%", "&7&oHello, this is a &bsample json&7.||cmd:/ping||ttp:&6&o&lCLICK&f for /ping")
send "(player) invited you to their team! Type /team accept (player) or <command:/team accept (player)>click here<reset> to accept" to player
You could potentially use evaluateOr use JSON chat features in Skript dev27
code_language.skript:send "(player) invited you to their team! Type /team accept (player) or <command:/team accept (player)>click here<reset> to accept" to player
Actually don't, since Skript can't parse expressions inside JSON tags as of now, it will broadcast the tag raw.
21.05 22:56:26 [Server] INFO Invalid json: Unterminated object at line 1 column 14
No. Are you using json.sk?My json stop working. This is the error:
code_language.skript:21.05 22:56:26 [Server] INFO Invalid json: Unterminated object at line 1 column 14
Someone else got this error?
Yep. And the last version of skript.No. Are you using json.sk?
Yep. And the last version of skript.
How are you using the json function? Could you send us your code?
# json("%player%", "[§bAes§6Gold§8]&r- &cTEXT HERE!||url:http://URLHERE/")
json("%player%", "[§bAes§6Gold§8]&r- &cTEXT HERE!||url:http://URLHERE/")
Using last skript version?
This does work for me:
code_language.skript:json("%player%", "[§bAes§6Gold§8]&r- &cTEXT HERE!||url:http://URLHERE/")
Yep, looks like this error is for dev27. I'll wait for the fix then (and report it on github if no one else already did it)
This is not really an error because Json is now implementing in Bensku Fork since dev26cYep, looks like this error is for dev27.
I'll try it laterThis is not really an error because Json is now implementing in Bensku Fork since dev26c
- <link:url>visible link text<reset>
- <command:command>clickable text<reset>
- <suggest command:command>clickable text<reset>
- <tooltip:tooltip text>visible text with tooltip<reset>