Exel

Untitled

Aug 12th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.13 KB | None | 0 0
  1. options:
  2. version: 2.2.5
  3. databasePrefix: jdogdatabase_
  4. useEssentialsmute: true
  5. #Super Chat Logger logs each chat multple times. Global Chat, Timed Global Chat, Personal Chat, Personal Timed Chat, Uuid logged chat, and more! (Could be resource intense. Use wisley)
  6. superChatLoggerEnabled: true
  7. every 1 second:
  8. if {{@databasePrefix}serverinfo.cchat.options.prefix} is not set:
  9. set {{@databasePrefix}serverinfo.cchat.options.prefix} to "&c[ChatFilter]"
  10. message "&c[CChat Version {@version}] Prefix option not found... creating one for you." to console
  11. if {{@databasePrefix}serverinfo.cchat.options.nopermission} is not set:
  12. set {{@databasePrefix}serverinfo.cchat.options.nopermission} to "&cNo Permission."
  13. message "&c[CChat Version {@version}] NoPermission option not found... creating one for you." to console
  14. if {{@databasePrefix}serverinfo.cchat.options.adminchatprefix} is not set:
  15. set {{@databasePrefix}serverinfo.cchat.options.adminchatprefix} to "&c&l[&d&lAdminChat&c&l]"
  16. message "&c[CChat Version {@version}] AdminChatPrefix option not found... creating one for you." to console
  17. if {{@databasePrefix}serverinfo.cchat.options.staffchatprefix} is not set:
  18. set {{@databasePrefix}serverinfo.cchat.options.staffchatprefix} to "&c&l[&b&lStaffChat&c&l]"
  19. message "&c[CChat Version {@version}] StaffChatPrefix option not found... creating one for you." to console
  20. every 2 seconds:
  21. loop all players:
  22. if {{@databasePrefix}CChat.player.%loop-player%.recentchats} is more than 0:
  23. remove 1 from {{@databasePrefix}CChat.player.%loop-player%.recentchats}
  24. if {{@databasePrefix}CChat.player.%loop-player%.recentchats} is less than 0:
  25. set {{@databasePrefix}CChat.player.%loop-player%.recentchats} to 0
  26. on join:
  27. delete {{@databasePrefix}CChat.player.%player%.recentchats}
  28. on chat:
  29. add 1 to {{@databasePrefix}CChat.player.%player%.recentchats}
  30. if {{@databasePrefix}CChat.player.%player%.recentchats} is more than 4:
  31. if player does not have the permission "ccat.spam.bypass":
  32. add 1 to {{@databasePrefix}CChat.Spam.%player's uuid%}
  33. wait 1 tick
  34. kick player due to "&cNo Spamming! &dYou have been kicked for spamming &b&l&n%{{@databasePrefix}CChat.Spam.%player's uuid%}%&d times."
  35. broadcast "&e%player% &dkicked for spamming &b&l%{{@databasePrefix}CChat.Spam.%player's uuid%}% &dtimes."
  36. stop
  37.  
  38.  
  39. command /clearmychat:
  40. permission: cchat.clearmychat
  41. permission message: %{{@databasePrefix}serverinfo.cchat.options.nopermission}%
  42. aliases: cmc
  43. trigger:
  44. loop 150 times:
  45. message ""
  46. message "&aYou cleared your chat."
  47.  
  48. command /sc [<text>]:
  49. aliases: staffchat, schat
  50. trigger:
  51. if player does not have the permission "cchat.staffchat":
  52. message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
  53. stop
  54. if arg 1 is not set:
  55. message "&c/sc <message>"
  56. stop
  57. message "%{{@databasePrefix}serverinfo.cchat.options.staffchatprefix}% &a%player%&e: &f %argument%" to console
  58. log "[CChat] [StaffChat] %player% -> %arg 1%" to "CChat/StaffChat"
  59. loop all players:
  60. loop-player has the permission "cchat.staffchat":
  61. message "%{{@databasePrefix}serverinfo.cchat.options.staffchatprefix}% &a%player%&e: &f %argument%" to loop-player
  62. command /ac [<text>]:
  63. aliases: adminchat, achat
  64. trigger:
  65. if player does not have the permission "cchat.adminchat":
  66. message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
  67. stop
  68. if arg 1 is not set:
  69. message "&c/ac <message>"
  70. stop
  71. message "%{{@databasePrefix}serverinfo.cchat.options.adminchatprefix}% &e%player%&e: &f %argument%" to console
  72. log "[CChat] [AdminChat] %player% -> %arg 1%" to "CChat/AdminChat"
  73. loop all players:
  74. loop-player has the permission "cchat.adminchat":
  75. message "%{{@databasePrefix}serverinfo.cchat.options.adminchatprefix}% &e%player%&e: &f %argument%" to loop-player
  76. command /cunmute [<offline player>]:
  77. trigger:
  78. if player does not have the permission "cchat.unmute":
  79. message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
  80. stop
  81. if arg 1 is not set:
  82. if player has permission "cchat.unmute":
  83. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b/unmute <player>"
  84. if arg 1 is set:
  85. if player has permission "cchat.unmute":
  86. set {mute.%arg 1%} to false
  87. broadcast "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b%arg 1% was unmuted by %player%"
  88. command /cmute [<offline player>] [<number>]:
  89. trigger:
  90. if player does not have the permission "cchat.mute":
  91. message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
  92. stop
  93. if arg 1 is not set:
  94. if player has permission "cchat.mute":
  95. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b/mute <player> <seconds>"
  96. if arg 1 is set:
  97. if player has permission "cchat.mute":
  98. set {mute.%arg 1%} to number-argument
  99. broadcast "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &b%arg 1% was muted by %player%"
  100. every 1 second:
  101. loop all players:
  102. if {mute.%loop-player%} is more than 0:
  103. remove 1 from {mute.%loop-player%}
  104. command /ccheckmute <text>:
  105. trigger:
  106. if player does not have the permission "cchat.checkmute":
  107. message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
  108. stop
  109. if arg 1 is not set:
  110. if player has permission "cchat.mute.check":
  111. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &a/checkmute <player>"
  112. if arg 1 is set:
  113. if player has permission "cchat.mute.check":
  114. if {mute.%arg 1%} is true:
  115. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &a%arg 1% is muted."
  116. if player has permission "cchat.mute.check":
  117. if {mute.%arg 1%} is false:
  118. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &a%arg 1% is not muted."
  119. command /cchat [<text>] [<text>] [<text>]:
  120. trigger:
  121. if player does not have the permission "cchat.help":
  122. message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
  123. stop
  124. if arg 1 is not set:
  125. if player has permission "cchat.help":
  126. make player execute command "/cchat help"
  127. if arg 1 is set:
  128. if arg 1 is "help":
  129. if player has permission "cchat.help":
  130. message "&e&lCChat &f{@version}"
  131. message "&6/cchat &fhelp &7-- List &eall Chat Control commands"
  132. message "&6/cchat &fclearchat &7-- &eClear the chat"
  133. message "&6/cchat &fdisable &7-- &eDisable chat"
  134. message "&6/cchat &fenable &7-- &eEnable chat"
  135. message "&6/cchat &freload &7-- &eReload plugin"
  136. message "&6/cmute &f[player] &7-- &eMute a player"
  137. message "&6/cunmute &f[player] &7-- &eUnmute a player"
  138. message "&6/ccheckmute &f[player] &7-- &eCheck if a player is muted"
  139. message "&6/symbols &7-- &eShow a list of chat symbols"
  140. message "&6/ac &7-- &eAdmin chat!"
  141. message "&6/sc &7-- &eStaff Chat!"
  142. message "&6/cchat &fset &7-- &eSet custom options in game."
  143. message "&6/cchat &foptions &7-- &eCheck custom options in game."
  144. message "&6/cchat perms&7 &f[2] &7-- &eShow a list of all permissions for this plugin"
  145. if arg 1 is "options" or "option":
  146. if player has the permission "cchat.options":
  147. add "Prefix" to {_options::*}
  148. add "StaffChatPrefix" to {_options::*}
  149. add "AdminChatPrefix" to {_options::*}
  150. add "NoPermission" to {_options::*}
  151. message "&aOption &7| &fValue"
  152. loop {_options::*}:
  153. message "&a%loop-value% &7| &f%{{@databasePrefix}serverinfo.cchat.options.%loop-value%}%"
  154. if arg 1 is "set":
  155. if player has the permission "cchat.set":
  156. if arg 2 is not set:
  157. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &f/cchat set <option> <value>"
  158. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &cOptions&7: &aPrefix, NoPermission, AdminChatPrefix, StaffChatPrefix"
  159. stop
  160. if arg 2 is set:
  161. if arg 2 is not "Prefix" or "nopermission" or "adminchatprefix" or "staffchatprefix":
  162. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &cUnknown Option."
  163. stop
  164. set {{@databasePrefix}serverinfo.cchat.options.%arg 2%} to "%colored arg 3%"
  165. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &fOption &a'%arg 2%' &fset to &a'%colored arg 3%&a'&f."
  166. else if arg 1 is "enable":
  167. if player has the permission "cchat.enable":
  168. broadcast " "
  169. broadcast "&b&lThe chat has been enabled by %player%!"
  170. broadcast ""
  171. set {chat.disabled} to false
  172. else if arg 1 is "disable":
  173. if player has the permission "cchat.disable":
  174. broadcast " "
  175. broadcast "&b&lThe chat has been disabled by %player%!"
  176. broadcast ""
  177. set {chat.disabled} to true
  178. else if arg 1 is "reload":
  179. if player has the permission "cchat.reload":
  180. make player execute command "/skript reload CChat.sk"
  181. else if arg 1 is "perms":
  182. if player has permission "cchat.perms":
  183. message "&e&lCChat Perms &bPage 1"
  184. message "&bThing &7: &aPerm"
  185. message "&b/cchat help&7: &acchat.help"
  186. message "&b/cchat disable&7: &acchat.disable"
  187. message "&b/cchat enable&7: &acchat.enable"
  188. message "&b/cchat clearchat&7: &acchat.clearchat"
  189. message "&b/cchat perms&7: &acchat.perms"
  190. message "&bBypass disable/mute chat&7: &acchat.bypass"
  191. message "&b/cmute &7: &acchat.mute"
  192. message "&b/cunmute &7: &acchat.unmute"
  193. message "&b/ccheckmute &7: &acchat.checkmute"
  194. message "&b/symbols &7: &acchat.lookatsymbols"
  195. message "&bSymbols in chat &7: &acchat.symbols"
  196. message "&b/ac &7: &acchat.adminchat"
  197. message "&b/sc &7: &acchat.staffchat"
  198. message "&e&l/cchat perms2"
  199. else if arg 1 is "perms2":
  200. if player has the permission "cchat.perms":
  201. message "&e&lCChat Perms &bPage 2"
  202. message "&bThing &7: &aPerm"
  203. message "&b/cchat reload &7: &acchat.reload"
  204. message "&b/cchat set &7: &acchat.set"
  205. message "&b/cchat options &7: &acchat.options"
  206. else if arg 1 is "clearchat":
  207. if player has permission "cchat.clearchat":
  208. loop 150 times:
  209. broadcast ""
  210. broadcast "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &bThe chat has been cleared by %player%!"
  211.  
  212.  
  213. on chat:
  214. log "[CChat] %player% -> %message%" to "CChat/playerlogs/%player%"
  215. log "[CChat] %player% -> %message%" to "CChat/GlobalChat"
  216.  
  217. on chat:
  218. if {chat.disabled} is true:
  219. player doesn't have permission "cchat.bypass"
  220. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &4You can not talk while the chat is disabled."
  221. cancel event
  222. on chat:
  223. if {mute.%player%} is more than 0:
  224. message "%{{@databasePrefix}serverinfo.cchat.options.prefix}% &4You can not talk while you are muted. &b%{mute.%player%}/60% &cminutes left."
  225. cancel event
  226.  
  227. on chat:
  228. if player has permission "cchat.symbols":
  229. replace all "{heart1}" in message with "❤"
  230. replace all "{heart2}" in message with "❥"
  231. replace all "{heart3}" in message with "♥"
  232. replace all "{male}" in message with "♂"
  233. replace all "{female}" in message with "♀"
  234. replace all "{peace}" in message with "☮"
  235. replace all "{checkmark}" in message with "✔"
  236. replace all "{x}" in message with "✘"
  237. replace all "{plane}" in message with "✈"
  238. replace all "{music}" in message with "♪"
  239. replace all "{music2}" in message with "♫"
  240. replace all "{cross}" in message with "✞"
  241. replace all "{snowman}" in message with "☃"
  242. replace all "{toxic}" in message with "☢"
  243. replace all "{crossbones}" in message with "☠"
  244. replace all "{copyright}" in message with "©"
  245. replace all "{tm}" in message with "™"
  246. replace all "{star1}" in message with "★"
  247. replace all "{star2}" in message with "✫"
  248. replace all "{star3}" in message with "✪"
  249. replace all "{star4}" in message with "✯"
  250. replace all "{pi}" in message with "π"
  251. replace all "{bio}" in message with "☣"
  252. replace all "{crown}" in message with "♛"
  253. replace all "{yingyang}" in message with "☯"
  254. replace all "{cloud}" in message with "☁"
  255. replace all "{1}" in message with "➀"
  256. replace all "{2}" in message with "➁"
  257. replace all "{3}" in message with "➂"
  258. replace all "{4}" in message with "➃"
  259. replace all "{5}" in message with "➄"
  260. replace all "{6}" in message with "➅"
  261. replace all "{7}" in message with "➆"
  262. replace all "{8}" in message with "➇"
  263. replace all "{9}" in message with "➈"
  264. replace all "{10}" in message with "➉"
  265.  
  266.  
  267. command /symbols:
  268. trigger:
  269. if player does not have the permission "cchat.lookatsymbols":
  270. message "%{{@databasePrefix}serverinfo.cchat.options.nopermission}%"
  271. stop
  272. message "&bChat Symbols"
  273. message "&a{heart1} &7= &f❤ &0&m--&a {heart2} &7= &f❥"
  274. message "&a{heart3} &7= &f♥ &0&m--&a {male} &7= &f♂"
  275. message "&a{female} &7= &f♀ &0&m--&a {peace} &7= &f☮"
  276. message "&a{checkmark} &7= &f✔ &0&m--&a {x} &7= &f✘"
  277. message "&a{plane} &7= &f✈ &0&m--&a {music} &7= &f♪"
  278. message "&a{music2} &7= &f♫ &0&m--&a {cross} &7= &f✞"
  279. message "&a{snowman} &7= &f☃ &0&m--&a {toxic} &7= &f☢"
  280. message "&a{crossbones} &7= &f☠ &0&m--&a {copyright} &7= &f©"
  281. message "&a{tm} &7= &f™ &0&m--&a {star1} &7= &f★"
  282. message "&a{pi} &7= &fπ &0&m--&a {star2} &7= &f✫"
  283. message "&a{star3} &7= &f✪ &0&m--&a {star4} &7= &f✯"
  284. message "&a{bio} &7= &f☣ &0&m--&a {crown} &7= &f♛"
  285. message "&a{yingyang} &7= &f☯ &0&m--&a {cloud} &7= &f☁"
  286. message "&a{1} &7= &f➀ &0&m---&a {2} &7= &f➁"
  287. message "&a{3} &7= &f➂ &0&m---&a {4} &7= &f➃"
  288. message "&a{5} &7= &f➄ &0&m---&a {6} &7= &f➅"
  289. message "&a{7} &7= &f➆ &0&m---&a {8} &7= &f➇"
  290. message "&a{9} &7= &f➈ &0&m---&a {10} &7= &f➉"
  291.  
  292.  
  293.  
  294. on chat:
  295. if {@superChatLoggerEnabled} is true:
  296. log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/player/%player%"
  297. on chat:
  298. if {@superChatLoggerEnabled} is true:
  299. log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/uuid/%player's uuid%"
  300. on chat:
  301. if {@superChatLoggerEnabled} is true:
  302. log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/global/player"
  303. on chat:
  304. if {@superChatLoggerEnabled} is true:
  305. log "(%player's uuid%) %player%: %message%" to "CChatSuperLogger/global/playeruuid"
Advertisement
Add Comment
Please, Sign In to add comment