Advertisement
LukaMC59

Untitled

Oct 7th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.29 KB | None | 0 0
  1. options:
  2. Version: 1.2
  3.  
  4. prefix: &8[&7TLN&8]
  5.  
  6. Chest-Prefix: &7ColorChat
  7.  
  8. Locked: &cLocked
  9.  
  10. Unlocked: &aUnlocked
  11.  
  12. command /color [<text>]:
  13. description: Color text
  14. aliases: /colorchat, /chat
  15. permission: colorchat.open
  16. trigger:
  17. if arg is not set:
  18. open chest with 3 row named "{@Chest-Prefix}" to player
  19. if player has permission "colorchat.lightgreen" or "colorchat.*":
  20. format slot 0 of player with Light Green Dye with name "&aLight Green" with lore "{@Unlocked}" to close then run "sudo %player% colorchat lightgreen"
  21. else:
  22. format slot 0 of player with Light Green Dye with name "&aLight Green" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  23. if player has permission "colorchat.aqua" or "colorchat.*":
  24. format slot 1 of player with Light Blue Dye with name "&bAqua" with lore "{@Unlocked}" to close then run "sudo %player% colorchat aqua"
  25. else:
  26. format slot 1 of player with Light Blue Dye with name "&bAqua" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  27. if player has permission "colorchat.lightred" or "colorchat.*":
  28. format slot 2 of player with Red Dye with name "&cLight Red" with lore "{@Unlocked}" to close then run "sudo %player% colorchat lightred"
  29. else:
  30. format slot 2 of player with Red Dye with name "&cLight Red" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  31. if player has permission "colorchat.pink" or "colorchat.*":
  32. format slot 3 of player with Pink Dye with name "&dPink" with lore "{@Unlocked}" to close then run "sudo %player% colorchat pink"
  33. else:
  34. format slot 3 of player with Pink Dye with name "&dPink" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  35. if player has permission "colorchat.yellow" or "colorchat.*":
  36. format slot 4 of player with Yellow Dye with name "&eYellow" with lore "{@Unlocked}" to close then run "sudo %player% colorchat yellow"
  37. else:
  38. format slot 4 of player with Yellow Dye with name "&eYellow" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  39. if player has permission "colorchat.white" or "colorchat.*":
  40. format slot 5 of player with Bone Meal with name "&fWhite" with lore "{@Unlocked}" to close then run "sudo %player% colorchat white"
  41. else:
  42. format slot 5 of player with Bone Meal with name "&fWhite" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  43. if player has permission "colorchat.blue" or "colorchat.*":
  44. format slot 6 of player with Blue Dye with name "&1Blue" with lore "{@Unlocked}" to close then run "sudo %player% colorchat blue"
  45. else:
  46. format slot 6 of player with Blue Dye with name "&1Blue" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  47. if player has permission "colorchat.green" or "colorchat.*":
  48. format slot 7 of player with Green Dye with name "&2Green" with lore "{@Unlocked}" to close then run "sudo %player% colorchat green"
  49. else:
  50. format slot 7 of player with Green Dye with name "&2Green" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  51. if player has permission "colorchat.darkaqua" or "colorchat.*":
  52. format slot 8 of player with Cyan Dye with name "&3Dark Aqua" with lore "{@Unlocked}" to close then run "sudo %player% colorchat darkaqua"
  53. else:
  54. format slot 8 of player with Cyan Dye with name "&3Dark Aqua" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  55. if player has permission "colorchat.red" or "colorchat.*":
  56. format slot 9 of player with redstone with name "&4Red" with lore "{@Unlocked}" to close then run "sudo %player% colorchat red"
  57. else:
  58. format slot 9 of player with redstone with name "&4Red" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  59. if player has permission "colorchat.purple" or "colorchat.*":
  60. format slot 10 of player with purple dye with name "&5Purple" with lore "{@Unlocked}" to close then run "sudo %player% colorchat Purple"
  61. else:
  62. format slot 10 of player with purple dye with name "&5Purple" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  63. if player has permission "colorchat.orange" or "colorchat.*":
  64. format slot 11 of player with orange dye with name "&6Orange" with lore "{@Unlocked}" to close then run "sudo %player% colorchat orange"
  65. else:
  66. format slot 11 of player with orange dye with name "&6Orange" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  67. if player has permission "colorchat.lightgray" or "colorchat.*":
  68. format slot 12 of player with Light Gray dye with name "&7Gray" with lore "{@Unlocked}" to close then run "sudo %player% colorchat Lightgray"
  69. else:
  70. format slot 12 of player with Light Gray Dye with name "&7Gray" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  71. if player has permission "colorchat.darkagray" or "colorchat.*":
  72. format slot 13 of player with Gray Dye with name "&8Dark Gray" with lore "{@Unlocked}" to close then run "sudo %player% colorchat darkgray"
  73. else:
  74. format slot 13 of player with Gray Dye with name "&8Dark Gray" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  75. if player has permission "colorchat.lightblue" or "colorchat.*":
  76. format slot 14 of player with Cyan Dye with name "&9Light Blue" with lore "{@Unlocked}" to close then run "sudo %player% colorchat lightblue"
  77. else:
  78. format slot 14 of player with Cyan Dye with name "&9Light Blue" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  79. if player has permission "colorchat.bold" or "colorchat.*":
  80. format slot 18 of player with name tag with name "&7&lBOLD" with lore "{@Unlocked}" to close then run "sudo %player% colorchat bold"
  81. else:
  82. format slot 18 of player with name tag with name "&7&lBOLD" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  83. if player has permission "colorchat.strike" or "colorchat.*":
  84. format slot 19 of player with name tag with name "&7&mStrike" with lore "{@Unlocked}" to close then run "sudo %player% colorchat strike"
  85. else:
  86. format slot 19 of player with name tag with name "&7&mStrike" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  87. if player has permission "colorchat.italic" or "colorchat.*":
  88. format slot 20 of player with name tag with name "&7&oItalic" with lore "{@Unlocked}" to close then run "sudo %player% colorchat italic"
  89. else:
  90. format slot 20 of player with name tag with name "&7&oItalic" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  91. if player has permission "colorchat.underline" or "colorchat.*":
  92. format slot 21 of player with name tag with name "&7&nUnderline" with lore "{@Unlocked}" to close then run "sudo %player% colorchat underline"
  93. else:
  94. format slot 21 of player with name tag with name "&7&nUnderline" with lore "{@Locked}" to close then run "sudo %player% nochatperms"
  95. format slot 26 of player with tnt with name "&fReset" to close then run "sudo %player% colorchat reset"
  96. if arg 1 is not "reset" or "bold" or "italic" or "underline" or "strike" or "blue" or "green" or "darkaqua" or "red" or "purple" or "orange" or "lightgray" or "darkgray" or "lightblue" or "lightgreen" or "aqua" or "lightred" or "pink" or "yellow" or "white":
  97. message "&5&lColorChat8&l>cUnknow color."
  98. message "&7Color list&8:1Blue&7,2Green&7,3DarkAqua&7,4Red&7,5Purple&7,6Orange&7,7LightGray,8DarkGray&7,9LightBlue&7,aLightGreen&7,bAqua&7 ,&cLightRed7,&dPink7,&eYellow7,&f White"
  99. if arg 1 is "blue":
  100. if player has permission "colorchat.blue" or "colorchat.*":
  101. Set {Color.%player%} to "&1"
  102. message "7You have selected your chat color as1Blue&7!"
  103. else:
  104. message "&cNo Permission!"
  105. if arg 1 is "green":
  106. if player has permission "colorchat.green" or "colorchat.*":
  107. Set {Color.%player%} to "&2"
  108. message "7You have selected your chat color as2Green&7!"
  109. else:
  110. message "&cNo Permission!"
  111. if arg 1 is "darkaqua":
  112. if player has permission "colorchat.darkaqua" or "colorchat.*":
  113. Set {Color.%player%} to "&3"
  114. message "7You have selected your chat color as3Dark Aqua&7!"
  115. else:
  116. message "&cNo Permission!"
  117. if arg 1 is "red":
  118. if player has permission "colorchat.red" or "colorchat.*":
  119. Set {Color.%player%} to "&4"
  120. message "7You have selected your chat color as4Red&7!"
  121. else:
  122. message "&cNo Permission!"
  123. if arg 1 is "purple":
  124. if player has permission "colorchat.purple" or "colorchat.*":
  125. Set {Color.%player%} to "&5"
  126. message "7You have selected your chat color as5Purple&7!"
  127. else:
  128. message "&cNo Permission!"
  129. if arg 1 is "orange":
  130. if player has permission "colorchat.orange" or "colorchat.*":
  131. Set {Color.%player%} to "&6"
  132. message "7You have selected your chat color as6Orange&7!"
  133. else:
  134. message "&cNo Permission!"
  135. if arg 1 is "lightgray":
  136. if player has permission "colorchat.lightgray" or "colorchat.*":
  137. Set {Color.%player%} to "&7"
  138. message "7You have selected your chat color as7Light Gray&7!"
  139. else:
  140. message "&cNo Permission!"
  141. if arg 1 is "darkgray":
  142. if player has permission "colorchat.darkgray" or "colorchat.*":
  143. Set {Color.%player%} to "&8"
  144. message "&7You have selected your chat color as8Drak Gray&7!"
  145. else:
  146. message "&cNo Permission!"
  147. if arg 1 is "lightblue":
  148. if player has permission "colorchat.lightblue" or "colorchat.*":
  149. Set {Color.%player%} to "&9"
  150. message "&7You have selected your chat color as9Light Blue&7!"
  151. else:
  152. message "&cNo Permission!"
  153. if arg 1 is "lightgreen":
  154. if player has permission "colorchat.lightgreen" or "colorchat.*":
  155. Set {Color.%player%} to "&a"
  156. message "&8You have selected your chat color asaLight Green&8!"
  157. else:
  158. message "&cNo Permission!"
  159. if arg 1 is "aqua":
  160. if player has permission "colorchat.aqua" or "colorchat.*":
  161. Set {Color.%player%} to "&b"
  162. message "7You have selected your chat color asbAqua&7!"
  163. else:
  164. message "&cNo Permission!"
  165. if arg 1 is "lightred":
  166. if player has permission "colorchat.lightred" or "colorchat.*":
  167. Set {Color.%player%} to "&c"
  168. message "7You have selected your chat color ascLight Red&7!"
  169. else:
  170. message "&cNo Permission!"
  171. if arg 1 is "pink":
  172. if player has permission "colorchat.pink" or "colorchat.*":
  173. Set {Color.%player%} to "&d"
  174. message "7You have selected your chat color asdPink&7!"
  175. else:
  176. message "&cNo Permission!"
  177. if arg 1 is "yellow":
  178. if player has permission "colorchat.yellow" or "colorchat.*":
  179. Set {Color.%player%} to "&e"
  180. message "7You have selected your chat color aseYellow&7!"
  181. else:
  182. message "&cNo Permission!"
  183. if arg 1 is "white":
  184. if player has permission "colorchat.white" or "colorchat.*":
  185. Set {Color.%player%} to "&f"
  186. message "7You have selected your chat color asfWhite&7!"
  187. else:
  188. message "&cNo Permission!"
  189. if arg 1 is "bold":
  190. if player has permission "colorchat.bold" or "colorchat.*":
  191. Set {Color.format.%player%} to "&l"
  192. message "7You have selected your chat color aslBOLD&r&7!"
  193. else:
  194. message "&cNo Permission!"
  195. if arg 1 is "strike":
  196. if player has permission "colorchat.strike" or "colorchat.*":
  197. Set {Color.format.%player%} to "&m"
  198. message "7You have selected your chat color asmStrike&r&7!"
  199. else:
  200. message "&cNo Permission!"
  201. if arg 1 is "italic":
  202. if player has permission "colorchat.italic" or "colorchat.*":
  203. Set {Color.format.%player%} to "&o"
  204. message "7You have selected your chat color asoitalic&r&7!"
  205. else:
  206. message "&cNo Permission!"
  207. if arg 1 is "underline":
  208. if player has permission "colorchat.underline" or "colorchat.*":
  209. Set {Color.format.%player%} to "&n"
  210. message "7You have selected your chat color asnunderline&r&7!"
  211. else:
  212. message "&cNo Permission!"
  213. if arg 1 is "reset":
  214. set {Color.format.%player%} to ""
  215. set {Color.%player%} to ""
  216. message "7You havefreseted7your color chat!"
  217.  
  218. on chat:
  219. if {Color.format.%player%} is not set:
  220. set {Color.format.%player%} to {Color.%player%}
  221. if {Color.%player%} is not set:
  222. set message to "%message%"
  223. else:
  224. set message to "%{Color.%player%}%%{Color.format.%player%}%%message%"
  225.  
  226. command /nochatperms:
  227. trigger:
  228. message "&cNo Permission!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement