Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command chatcolor <text>:
- permission: cos.cc
- trigger:
- if arg-text is set:
- if arg-text is "red":
- set {chatcolor.%player's uuid%} to "&c"
- send "&aYour chat color has changed to &cRED&a!"
- if arg-text is "blue":
- set {chatcolor.%player's uuid%} to "&9"
- send "&aYour chat color has changed to &9BLUE&a!"
- if arg-text is "lime":
- set {chatcolor.%player's uuid%} to "&a"
- send "&aYour chat color has changed to LIME!"
- if arg-text is "green":
- set {chatcolor.%player's uuid%} to "&2"
- send "&aYour chat color has changed to &2GREEN&a!"
- if arg-text is "dark blue", "dark-blue" or "dark blue":
- set {chatcolor.%player's uuid%} to "&1"
- send "&aYour chat color has changed to &1DARK BLUE&a!"
- if arg-text is "cyan":
- set {chatcolor.%player's uuid%} to "&3"
- send "&aYour chat color has changed to &3CYAN&a!"
- if arg-text is "darkred", "dark-red" or "dark red":
- set {chatcolor.%player's uuid%} to "&4"
- send "&aYour chat color has changed to &4DARK RED&a!"
- if arg-text is "purple":
- set {chatcolor.%player's uuid%} to "&5"
- send "&aYour chat color has changed to &5PURPLE&a!"
- if arg-text is "gold":
- set {chatcolor.%player's uuid%} to "&6"
- send "&aYour chat color has changed to &6GOLD&a!"
- if arg-text is "lightgray", "light-gray" or "light-gray":
- set {chatcolor.%player's uuid%} to "&7"
- send "&aYour chat color has changed to &7LIGHT GRAY&a!"
- if arg-text is "gray":
- set {chatcolor.%player's uuid%} to "&8"
- send "&aYour chat color has changed to &8GRAY&a!"
- if arg-text is "yellow":
- set {chatcolor.%player's uuid%} to "&e"
- send "&aYour chat color has changed to &eYELLOW&a!"
- if arg-text is "white":
- set {chatcolor.%player's uuid%} to "&f"
- send "&aYour chat color has changed to &fWHITE&a!"
- if arg-text is "black":
- set {chatcolor.%player's uuid%} to "&0"
- send "&aYour chat color has changed to &0BLACK&a!"
- if arg-text is "off":
- set {chatcolor.%player's uuid%} to "&7"
- send "&aYour chat color has been turned off!"
- on chat:
- if {chatcolor.%player's uuid%} is set:
- cancel event
- broadcast "%player's display name%&8: %{chatcolor.%player's uuid%}%%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement