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.

<Command> JSON With %player%

Discussion in 'Skript' started by oHeckGage, Dec 2, 2021.

Tags:
  1. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    4
    When I try and use the <command:command> format in text with Skript, it only shows in chat and is not clickable like how I want it to be. In the file I linked, I showed how it doesnt seem to want to be in the normal format and shows the whole <command> statement thats supposed to be clickable text.

    My code:

    Code (Text):
    1.  
    2. command /tpa <player>:
    3.     trigger:
    4.         add arg-1 to {tpreqgive::%player%::*}
    5.         add player to {tpreqrec::%arg-1%::*}
    6.         send "&6[&eTPA&6] &6You have sent a teleportation request to &c%arg-1%"
    7.         send "&6[&eTPA&6] &6You have received a teleportation request from &c%player%"
    8.         send "&6[&eTPA&6] <command:/tpaccept %player%>&aAccept<reset><command:/tpadeny %player%>&cDeny<reset>" to arg-1
    9.  
    If you need the rest of my code, I can hand it over. If I could get some help on this, that would be great. I've never had this issue so I don't really know what to do. Much gratitude.

    (Edit: It works without the %player% in the command so it's because of the %player% thats needed in the <command> part)
     

    Attached Files:

    #1 oHeckGage, Dec 2, 2021
    Last edited: Dec 2, 2021
  2. wCrazy_

    wCrazy_ Member

    Joined:
    Jan 7, 2021
    Messages:
    15
    Likes Received:
    0
  3. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    4
    I need it to be with Skript, how would I use that command with a minecraft generator. That command wouldn't work since you need it to be personalized with %player%
     
  4. yea rite

    yea rite Active Member

    Joined:
    Jul 11, 2021
    Messages:
    60
    Likes Received:
    3
    you gotta do
    send formatted "" to player
     

Share This Page

Loading...