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.

Can't understand this condition/effect

Discussion in 'Skript' started by ApplePenChicken, Oct 2, 2022.

  1. ApplePenChicken

    Joined:
    Aug 8, 2021
    Messages:
    30
    Likes Received:
    0
    Im trying to make console do a command

    Code (Text):
    1.             execute console command "/tellraw @a ["",{"text":"Do you want to go to the next level?","bold":true,"color":"dark_red"},{"text":"\n"},{"text":"YES","bold":true,"color":"dark_green","clickEvent":{"action":"run_command","value":"/wave 7"}}]"
    2.  
    --- Double Post Merged, Oct 2, 2022, Original Post Date: Oct 2, 2022 ---
    It just leaves an error
    --- Double Post Merged, Oct 2, 2022 ---
    Please Respond when you can
    --- Double Post Merged, Oct 3, 2022 ---
    Bump
    --- Double Post Merged, Oct 3, 2022 ---
    Is anyone even there bruh
     
  2. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    138
    Likes Received:
    22
    Double quotes inside another quotes
     
  3. ApplePenChicken

    Joined:
    Aug 8, 2021
    Messages:
    30
    Likes Received:
    0
  4. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    138
    Likes Received:
    22
    Code (Text):
    1. execute console command "/tellraw @a ["""",{""text"":""Do you want to go to the next level?"",""bold"":true,""color"":""dark_red""},{""text"":""\n""},{""text"":""YES"",""bold"":true,""color"":""dark_green"",""clickEvent"":{""action"":""run_command"",""value"":""/wave 7""}}]"
    2.  
     
    • Like Like x 1
  5. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    111
    Likes Received:
    3
    Btw instead of doing this you can just

    Code (Text):
    1.  
    2. # Formatting codes: https://minecraft.fandom.com/wiki/Formatting_codeshttps://minecraft.fandom.com/wiki/Formatting_codes
    3. send "&4&lDo you want to go to the next level?"
    4. send "<cmd:/wave 7>&2&lYES<reset>"
    5.  
    that should do it
     
    • Agree Agree x 1
  6. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    138
    Likes Received:
    22
    with skript-reflect!!!!!!!!!
    Code (Text):
    1. import:
    2.   net.md_5.bungee.api.ChatColor
    3.   net.md_5.bungee.api.chat.ClickEvent$Action
    4.   net.md_5.bungee.api.chat.ClickEvent
    5.   net.md_5.bungee.api.chat.TextComponent
    6.  
    7. on join:
    8.   set {_text} to new TextComponent("Do you want to go to the next level?")
    9.   {_text}.setColor(ChatColor.DARK_RED)
    10.   {_text}.setBold(true)
    11.   player.spigot().sendMessage({_text})
    12.   set {_button} to new TextComponent("YES")
    13.   {_button}.setColor(ChatColor.DARK_GREEN)
    14.   {_button}.setBold(true)
    15.   {_button}.setClickEvent(new ClickEvent(Action.RUN_COMMAND,"/wave 7"))
    16.   player.spigot().sendMessage({_button})
     
    • Agree Agree x 1
  7. Pierrelasse

    Pierrelasse Active Member

    Joined:
    Apr 20, 2022
    Messages:
    111
    Likes Received:
    3
    LMFASO

    Bruih lotzy = skript-reflect
     
    • Funny Funny x 1

Share This Page

Loading...