hey! i have this code that opens a book:
however where it says "add click event with action RUN_COMMAND with execute" that is making the player run the command, how do i make it so that it adds a click event that makes the CONSOLE execute the command?
code_language.skript:
command /rank:
trigger:
set {_book} to a new book
wait 1 tick
set {_component} to a new text component with "&3Click on one of the &3ranks below to &3disguise your rank. &cNote that all &cpermissions from your &crank will be removed &cand you will be given &cthe permissions of the &crank you chose."
wait 1 tick
set {_component2} to a new text component with "%nl%%nl%&7Member"
wait 1 tick
add hover event with action SHOW_TEXT with text "&3Your rank will be disguised as &7Member&3." to text component {_component2}
wait 1 tick
add click event with action RUN_COMMAND with execute "/setrank %player% Member" to text component {_component2}
add click event with action RUN_COMMAND with execute "/alert Hello" to text component {_component2}
add text component {_component} and {_component2} to book {_book}
wait 2 tick
open book {_book} to player
however where it says "add click event with action RUN_COMMAND with execute" that is making the player run the command, how do i make it so that it adds a click event that makes the CONSOLE execute the command?