Can't understand this condition/effect

  • 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.
Aug 8, 2021
37
0
6
21
Im trying to make console do a command

Code:
            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"}}]"
[doublepost=1664745918,1664745885][/doublepost]It just leaves an error
[doublepost=1664748242][/doublepost]Please Respond when you can
[doublepost=1664751764][/doublepost]Bump
[doublepost=1664762117][/doublepost]Is anyone even there bruh
 
Im trying to make console do a command

Code:
            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"}}]"
[doublepost=1664745918,1664745885][/doublepost]It just leaves an error
[doublepost=1664748242][/doublepost]Please Respond when you can
[doublepost=1664751764][/doublepost]Bump
[doublepost=1664762117][/doublepost]Is anyone even there bruh
Double quotes inside another quotes
 
Btw instead of doing this you can just

Code:
# Formatting codes: https://minecraft.fandom.com/wiki/Formatting_codeshttps://minecraft.fandom.com/wiki/Formatting_codes
send "&4&lDo you want to go to the next level?"
send "<cmd:/wave 7>&2&lYES<reset>"
that should do it
 
with skript-reflect!!!!!!!!!
Code:
import:
  net.md_5.bungee.api.ChatColor
  net.md_5.bungee.api.chat.ClickEvent$Action
  net.md_5.bungee.api.chat.ClickEvent
  net.md_5.bungee.api.chat.TextComponent

on join:
  set {_text} to new TextComponent("Do you want to go to the next level?")
  {_text}.setColor(ChatColor.DARK_RED)
  {_text}.setBold(true)
  player.spigot().sendMessage({_text})
  set {_button} to new TextComponent("YES")
  {_button}.setColor(ChatColor.DARK_GREEN)
  {_button}.setBold(true)
  {_button}.setClickEvent(new ClickEvent(Action.RUN_COMMAND,"/wave 7"))
  player.spigot().sendMessage({_button})
 
Status
Not open for further replies.