mass0070

Skript RainbowChat

Jul 9th, 2020 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.02 KB | None | 0 0
  1. on load:
  2. clear {RaindbowChat.Color::*}
  3. add colored "&1" to {RaindbowChat.Color::*}
  4. add colored "&2" to {RaindbowChat.Color::*}
  5. add colored "&3" to {RaindbowChat.Color::*}
  6. add colored "&4" to {RaindbowChat.Color::*}
  7. add colored "&5" to {RaindbowChat.Color::*}
  8. add colored "&6" to {RaindbowChat.Color::*}
  9. add colored "&7" to {RaindbowChat.Color::*}
  10. add colored "&9" to {RaindbowChat.Color::*}
  11.  
  12. add colored "&a" to {RaindbowChat.Color::*}
  13. add colored "&b" to {RaindbowChat.Color::*}
  14. add colored "&c" to {RaindbowChat.Color::*}
  15. add colored "&d" to {RaindbowChat.Color::*}
  16. add colored "&e" to {RaindbowChat.Color::*}
  17.  
  18.  
  19.  
  20. on join:
  21. set {RaindbowChat.Activate.%player%} to false
  22.  
  23. command /RainbowChat [<text>] [<player>]:
  24. permission: RaindbowChat.Use.Toggle
  25. trigger:
  26. if arg 1 is set:
  27. if arg 2 is set:
  28. if arg 1 is "toggle":
  29. if player has permission "RaindbowChat.Use.Toggle.Other":
  30. if {RaindbowChat.Activate.%arg 2%} is true:
  31. set {RaindbowChat.Activate.%arg 2%} to false
  32. message "&0[&aR&ea&ci&bn&1b&eo&7w&3C&8h&9a&ct&0] &eRainbowchat is now disabled.&6(for %arg 2%)"
  33. message "&0[&aR&ea&ci&bn&1b&eo&7w&3C&8h&9a&ct&0] &eRainbowchat is now disabled." to arg 2
  34. else:
  35. set {RaindbowChat.Activate.%arg 2%} to true
  36. message "&0[&aR&ea&ci&bn&1b&eo&7w&3C&8h&9a&ct&0] &eRainbowchat is now enabled.&6(for %arg 2%)"
  37. message "&0[&aR&ea&ci&bn&1b&eo&7w&3C&8h&9a&ct&0] &eRainbowchat is now enabled." to arg 2
  38.  
  39. else:
  40. if arg 1 is "toggle":
  41. if {RaindbowChat.Activate} is true:
  42. set {RaindbowChat.Activate} to false
  43. message "&0[&aR&ea&ci&bn&1b&eo&7w&3C&8h&9a&ct&0] &eRainbowchat is now disabled."
  44. else:
  45. set {RaindbowChat.Activate} to true
  46. message "&0[&aR&ea&ci&bn&1b&eo&7w&3C&8h&9a&ct&0] &eRainbowchat is now enabled."
  47. else:
  48. message "&0[&aR&ea&ci&bn&1b&eo&7w&3C&8h&9a&ct&0] &eHelp Page."
  49. message "&7/&aRaindbowChat toggle &8* &eActivate / Disable RaindbowChat."
  50. if player has permission "RaindbowChat.Use.Toggle.Other":
  51. message "&7/&aRaindbowChat toggle <player>&8* &eActivate / Disable RaindbowChat."
  52.  
  53. on chat:
  54. if {RaindbowChat.Activate} is true:
  55. set {RaindbowChat.Words.%player%.::*} to message split at ""
  56. clear {RaindbowChat.Create.%player%.1}
  57. clear {RaindbowChat.Create.%player%.2}
  58. clear {RaindbowChat.Words.TXT.%player%.::*}
  59.  
  60. loop {RaindbowChat.Words.%player%.::*}:
  61. set {RaindbowChat.Randome.%player%} to a random element out of {RaindbowChat.Color::*}
  62. add {RaindbowChat.Randome.%player%} to {RaindbowChat.Words.TXT.%player%.::*}
  63.  
  64. add loop-var to {RaindbowChat.Words.TXT.%player%.::*}
  65. set message to "%{RaindbowChat.Words.TXT.%player%.::*}%"
  66.  
  67. loop {RaindbowChat.Words.TXT.%player%.::*}:
  68. if {RaindbowChat.Create.%player%.1} is set:
  69. set {RaindbowChat.Create.%player%.2} to {RaindbowChat.Create.%player%.1}
  70. set {RaindbowChat.Create.%player%.1} to "%{RaindbowChat.Create.%player%.1}%%loop-var%"
  71. else:
  72. set {RaindbowChat.Create.%player%.1} to loop-var
  73.  
  74. set message to "%{RaindbowChat.Create.%player%.1}%"
  75. if {RaindbowChat.Activate.%player%} is true:
  76. set {RaindbowChat.Words.%player%.::*} to message split at ""
  77. clear {RaindbowChat.Create.%player%.1}
  78. clear {RaindbowChat.Create.%player%.2}
  79. clear {RaindbowChat.Words.TXT.%player%.::*}
  80.  
  81. loop {RaindbowChat.Words.%player%.::*}:
  82. set {RaindbowChat.Randome.%player%} to a random element out of {RaindbowChat.Color::*}
  83. add {RaindbowChat.Randome.%player%} to {RaindbowChat.Words.TXT.%player%.::*}
  84.  
  85. add loop-var to {RaindbowChat.Words.TXT.%player%.::*}
  86. set message to "%{RaindbowChat.Words.TXT.%player%.::*}%"
  87.  
  88. loop {RaindbowChat.Words.TXT.%player%.::*}:
  89. if {RaindbowChat.Create.%player%.1} is set:
  90. set {RaindbowChat.Create.%player%.2} to {RaindbowChat.Create.%player%.1}
  91. set {RaindbowChat.Create.%player%.1} to "%{RaindbowChat.Create.%player%.1}%%loop-var%"
  92. else:
  93. set {RaindbowChat.Create.%player%.1} to loop-var
  94.  
  95. set message to "%{RaindbowChat.Create.%player%.1}%"
Add Comment
Please, Sign In to add comment