So I'm new to skript and not sure how to do most things
Heres my skript
I want to make it so I can /color <Players name> <color>
But make a separate thing cause its for operators or people with the permission
Heres my skript
code_language.skript:
command /color [<string>]:
trigger:
arg 1 is "green":
set {chatcolor.%player%} to "&2"
send "&eNow you will write in &2green&e!"
arg 1 is "red":
set {chatcolor.%player%} to "&4"
send "&eNow you will write in &4red&e!"
arg 1 is "lightred":
set {chatcolor.%player%} to "&c"
send "&eNow you will write in &clight red&e!"
arg 1 is "white":
set {chatcolor.%player%} to "&f"
send "&eNow you will write in &fwhite&e!"
arg 1 is "help":
send "&eUse the command with &c/color <Color>"
arg 1 is "colors"
send "{&4Red} {&cLightred} {&2Green} {&fwhite} {&6Gold} {&alightgreen} {&dmagenta} {&5pruple} {&9lightblue} {&1blue} {&bbabyblue} {&3aqua} {&7gray} {&eyellow} {&0black}"
on chat:
cancel event
broadcast "%coloured player's displayname%&f: %{chatcolor.%player%}%%message%"
I want to make it so I can /color <Players name> <color>
But make a separate thing cause its for operators or people with the permission