Chatcolor

  • 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!

KyTDK

New Member
Oct 9, 2018
8
0
0
20
I want a chat color skript that only has the command /chatcolor. With /chatcolor you put the color code after it like /chatcolor a not /chatcolor &a. I am using Pex and Essentials chat so keep that in mind if you make this. My groups in Pex have a suffix, some players have a a nickname while others might have a prefix so format it to work with that. And if a player wishes to toggle it off they can do /chatcolor off. Last thing I want is a permission, the permission will be chat.color. Thank you, please send me the download links to the requirements for this chatcolor to work too.
 
code_language.skript:
command /chatcolor <text>:
    permission: chat.color
    trigger:
        if split "1234567890abcdef" at "" does not contain arg-1:
            if arg-1 is "off" or "reset":
                delete {chatcolor::%player's uuid%}
                message "&aChatcolor has been turned off"
            else:
                message "&cThat is not a valid chatcolor"
        else:
            set {chatcolor::%player's uuid%} to arg-1
            message "&aYour chatcolor has been set to &c%arg-1%"
            
on chat:
    {chatcolor::%player's uuid%} is set
    set {_c} to {chatcolor::%player's uuid%}
    set message to colored "&%{_c}%%message%"
No requirements
 
code_language.skript:
command /chatcolor <text>:
    permission: chat.color
    trigger:
        if split "1234567890abcdef" at "" does not contain arg-1:
            if arg-1 is "off" or "reset":
                delete {chatcolor::%player's uuid%}
                message "&aChatcolor has been turned off"
            else:
                message "&cThat is not a valid chatcolor"
        else:
            set {chatcolor::%player's uuid%} to arg-1
            message "&aYour chatcolor has been set to &c%arg-1%"
           
on chat:
    {chatcolor::%player's uuid%} is set
    set {_c} to {chatcolor::%player's uuid%}
    set message to colored "&%{_c}%%message%"
No requirements
Thank you so much
 
code_language.skript:
[20:56:40 INFO]: Skript version 2.3-beta2
[20:56:40 INFO]: Customize Minecraft's mechanics with simple scripts written in plain English sentences.
[20:56:40 INFO]: Website: https://bensku.github.io/Skript
[20:56:40 INFO]: Authors: Njol, Mirreski, bensku, TheBentoBox, tim740, Tuke-Nuke, TheLimeGlass, xXAndrew28Xx, Sashie, RoyCurtis, nfell2009, Syst3ms and Snow-Pyon
[20:56:40 INFO]: SkriptJSON version 1.0.0
[20:56:40 INFO]: skript-mirror version 0.19.1
[20:56:40 INFO]: Reflection utilities for Skript
[20:56:40 INFO]: Website: https://github.com/btk5h/skript-mirror
[20:56:40 INFO]: Author: Bryan Terce <[email protected]>
 
code_language.skript:
[20:56:40 INFO]: Skript version 2.3-beta2
[20:56:40 INFO]: Customize Minecraft's mechanics with simple scripts written in plain English sentences.
[20:56:40 INFO]: Website: https://bensku.github.io/Skript
[20:56:40 INFO]: Authors: Njol, Mirreski, bensku, TheBentoBox, tim740, Tuke-Nuke, TheLimeGlass, xXAndrew28Xx, Sashie, RoyCurtis, nfell2009, Syst3ms and Snow-Pyon
[20:56:40 INFO]: SkriptJSON version 1.0.0
[20:56:40 INFO]: skript-mirror version 0.19.1
[20:56:40 INFO]: Reflection utilities for Skript
[20:56:40 INFO]: Website: https://github.com/btk5h/skript-mirror
[20:56:40 INFO]: Author: Bryan Terce <[email protected]>
Use https://github.com/SkriptLang/Skript/releases/tag/dev37c