I'm trying to make a command that toggles rainbow chat (i already have the skript) but it wont work. please help.
The Error:
The 1st argument given to the function 'rainbow' is not of the required type text. Check the correct order of the arguments and put lists into parentheses if appropriate (e.g. 'give(player,(iron ore and gold ore))'). Please note that storing the value in a variable and then using that variable as parameter will suppress this error, but it still won't work. (Rainbow Chat.sk, line 169: make player say colored rainbow(colored text)')
The Skript:
command /rbctoggle:
permission: Skript.Rbc
permission message: &8&l[&6&lColor&8&l] &c&lError: &4You don't have the required permission to perform this command
trigger:
if {RBC} is not set:
set {RBC} to true
send "&aRainbow Chat Has Been Enabled!"
else:
clear {RBC}
send "&cRainbow Chat Has Been Disabled!"
on chat:
if {RBC} is true:
set {text} to text
make player say colored rainbow(colored text)