Solved I want to make a chat color command

  • 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.
Apr 22, 2020
18
1
3
24
So I am very new to skript, I know basic things like making simple commands but I have something that I don't know how to do.
I want to make a /color command where you can /color <color here>.
The colors will just be all the essentials colors e.g /color red or /color lightred and it will set your chat color red or light red.
Now I'm not completely sure if it is possible.
I have pretty much every skript addon.
If you could help or make a skript that would work it would be greatly appreciated.
 
So I am very new to skript, I know basic things like making simple commands but I have something that I don't know how to do.
I want to make a /color command where you can /color <color here>.
The colors will just be all the essentials colors e.g /color red or /color lightred and it will set your chat color red or light red.
Now I'm not completely sure if it is possible.
I have pretty much every skript addon.
If you could help or make a skript that would work it would be greatly appreciated.
Try:
code_language.skript:
command /color [<string>]:
    trigger:
        arg 1 is "green":
            set {chatcolor.%player%} to "&2"
            send "&eNow you will write in &2green&e!"
         
on chat:
    cancel event
    broadcast "%coloured player's displayname%&f: %{chatcolor.%player%}%%message%"
There you do it with the rest of the colors. Here I did a short code.
 
Try:
code_language.skript:
command /color [<string>]:
    trigger:
        arg 1 is "green":
            set {chatcolor.%player%} to "&2"
            send "&eNow you will write in &2green&e!"
        
on chat:
    cancel event
    broadcast "%coloured player's displayname%&f: %{chatcolor.%player%}%%message%"
There you do it with the rest of the colors. Here I did a short code.


Alright ill try that
[doublepost=1588135979,1588135768][/doublepost]Works!
 
Done
[doublepost=1588142978,1588136066][/doublepost]
Try:
code_language.skript:
command /color [<string>]:
    trigger:
        arg 1 is "green":
            set {chatcolor.%player%} to "&2"
            send "&eNow you will write in &2green&e!"
        
on chat:
    cancel event
    broadcast "%coloured player's displayname%&f: %{chatcolor.%player%}%%message%"
There you do it with the rest of the colors. Here I did a short code.

The only issue with the skript is when a new player joins it says Playername: <NONE> message
I want it to set them to gray automatically
unless they have set their color
 
Done
[doublepost=1588142978,1588136066][/doublepost]

The only issue with the skript is when a new player joins it says Playername: <NONE> message
I want it to set them to gray automatically
unless they have set their color
Code:
on join:
    if {chatcolor.%player%} is not set:
        set {chatcolor.%player%} to "&f"
 
Status
Not open for further replies.