Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. command chatcolor <text>:
  2. permission: cos.cc
  3. trigger:
  4. if arg-text is set:
  5. if arg-text is "red":
  6. set {chatcolor.%player's uuid%} to "&c"
  7. send "&aYour chat color has changed to &cRED&a!"
  8. if arg-text is "blue":
  9. set {chatcolor.%player's uuid%} to "&9"
  10. send "&aYour chat color has changed to &9BLUE&a!"
  11. if arg-text is "lime":
  12. set {chatcolor.%player's uuid%} to "&a"
  13. send "&aYour chat color has changed to LIME!"
  14. if arg-text is "green":
  15. set {chatcolor.%player's uuid%} to "&2"
  16. send "&aYour chat color has changed to &2GREEN&a!"
  17. if arg-text is "dark blue", "dark-blue" or "dark blue":
  18. set {chatcolor.%player's uuid%} to "&1"
  19. send "&aYour chat color has changed to &1DARK BLUE&a!"
  20. if arg-text is "cyan":
  21. set {chatcolor.%player's uuid%} to "&3"
  22. send "&aYour chat color has changed to &3CYAN&a!"
  23. if arg-text is "darkred", "dark-red" or "dark red":
  24. set {chatcolor.%player's uuid%} to "&4"
  25. send "&aYour chat color has changed to &4DARK RED&a!"
  26. if arg-text is "purple":
  27. set {chatcolor.%player's uuid%} to "&5"
  28. send "&aYour chat color has changed to &5PURPLE&a!"
  29. if arg-text is "gold":
  30. set {chatcolor.%player's uuid%} to "&6"
  31. send "&aYour chat color has changed to &6GOLD&a!"
  32. if arg-text is "lightgray", "light-gray" or "light-gray":
  33. set {chatcolor.%player's uuid%} to "&7"
  34. send "&aYour chat color has changed to &7LIGHT GRAY&a!"
  35. if arg-text is "gray":
  36. set {chatcolor.%player's uuid%} to "&8"
  37. send "&aYour chat color has changed to &8GRAY&a!"
  38. if arg-text is "yellow":
  39. set {chatcolor.%player's uuid%} to "&e"
  40. send "&aYour chat color has changed to &eYELLOW&a!"
  41. if arg-text is "white":
  42. set {chatcolor.%player's uuid%} to "&f"
  43. send "&aYour chat color has changed to &fWHITE&a!"
  44. if arg-text is "black":
  45. set {chatcolor.%player's uuid%} to "&0"
  46. send "&aYour chat color has changed to &0BLACK&a!"
  47. if arg-text is "off":
  48. set {chatcolor.%player's uuid%} to "&7"
  49. send "&aYour chat color has been turned off!"
  50. on chat:
  51. if {chatcolor.%player's uuid%} is set:
  52. cancel event
  53. broadcast "%player's display name%&8: %{chatcolor.%player's uuid%}%%message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement