Solved Send İn Run Command

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

Yaşarhan

Active Member
May 16, 2020
87
6
8
24
Turkey Istanbul
Working:
Code:
send "<run command:/chatreport>%player's display name% &9&l» &r%message%" to loop-player

Not Working:

%player% %message% this args add to command ı did, not working.

Code:
send "<run command:/chatreport %player% %message%>%player's display name% &9&l» &r%message%" to loop-player

I think is reading the command as a message.

oXq22I.png
 
Working:
Code:
send "<run command:/chatreport>%player's display name% &9&l» &r%message%" to loop-player

Not Working:

%player% %message% this args add to command ı did, not working.

Code:
send "<run command:/chatreport %player% %message%>%player's display name% &9&l» &r%message%" to loop-player

I think is reading the command as a message.

oXq22I.png
Try using json.sk API
Code:
json("%targets%", "text||ttp:your tooltip||cmd:/example")
 
  • Like
Reactions: Yaşarhan
I created command:
Code:
json("%loop-player%", "%player's display name% &9&l» &r%message%"||ttp:your tooltip||cmd:/chatreport %player% %message%")

Can you fix this command sir ?

Error:
DOW3MC.png
 
I created command:
Code:
json("%loop-player%", "%player's display name% &9&l» &r%message%"||ttp:your tooltip||cmd:/chatreport %player% %message%")

Can you fix this command sir ?

Error:
DOW3MC.png
You're using -> " <- at the end of the text
Code:
&r%message%"
You just need to use it at the start and end of the json
Code:
json("%targets%", "your code here")

Correct way:
Code:
json("%loop-player%", "%player's display name% &9&l» &r%message%||ttp:&cClick to report &a%player%&c.||cmd:/chatreport %player% %message%")
Sorry for my english btw, I'm spanish and I know the basics
[doublepost=1589928424,1589928351][/doublepost]
You're using -> " <- at the end of the text
Code:
&r%message%"
You just need to use it at the start and end of the json
Code:
json("%targets%", "your code here")

Correct way:
Code:
json("%loop-player%", "%player's display name% &9&l» &r%message%||ttp:&cClick to report &a%player%&c.||cmd:/chatreport %player% %message%")
Sorry for my english btw, I'm spanish and I know the basics
Also, using json.sk API you can add multiples clickable things by using -> ||

Code:
json("%targets%", "&cnon-clickable text|| &7- ||&aClickable text and tooltip||ttp:&aYea||cmd:/ping|| &6hoverable text without command||ttp:TOOLTIP|| &7clickable without tooltip||cmd:/example")
 
  • Like
Reactions: Yaşarhan
You're using -> " <- at the end of the text
Code:
&r%message%"
You just need to use it at the start and end of the json
Code:
json("%targets%", "your code here")

Correct way:
Code:
json("%loop-player%", "%player's display name% &9&l» &r%message%||ttp:&cClick to report &a%player%&c.||cmd:/chatreport %player% %message%")
Sorry for my english btw, I'm spanish and I know the basics
[doublepost=1589928424,1589928351][/doublepost]
Also, using json.sk API you can add multiples clickable things by using -> ||

Code:
json("%targets%", "&cnon-clickable text|| &7- ||&aClickable text and tooltip||ttp:&aYea||cmd:/ping|| &6hoverable text without command||ttp:TOOLTIP|| &7clickable without tooltip||cmd:/example")

I understund !
Very, very thanks soo much sir.
 
Status
Not open for further replies.