Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.36 KB | None | 0 0
  1. # -------------------------------------------------------------------------------
  2. # This is the very first implementation of ChatControl's
  3. # new custom rule engine codenamed ChatCeaser By Kangarko
  4. #
  5. # Accepts following operators (without <>)
  6. # match <regex> (A valid regular expression string to match the message.)
  7. # id <number/string> (Assign an id/name to the rule. Used in messages and handlers.)
  8. # ignore string <string/regex> (If the message matches given string it will be ignored.)
  9. # ignore event <chat/commands/signs> (If the rule triggers on specified event it will be ignored.)
  10. # ignore perm <permission> (A permission to bypass the rule.)
  11. # ignore gamemode <survival/creative/adventure/spectator/0/1/2/3> (Gamemodes to be ignored. Separate by | to add multiple gamemodes.)
  12. # before strip <regex> (A valid regular expression used to strip specified characters before the message is checked.)
  13. # before replace <regex> with <message> (A regular expression used to replace characters with other characters before the message is checked.)
  14. # then replace <replacement|replacement2> (A string that replaces only the part of the checked message that matches the match.)
  15. # (Chosen randomly from the messages divided by |)
  16. # then rewrite <message|message2> (A message that replaces the entire checked message.)
  17. # (Chosen randomly from the messages divided by |)
  18. # then deny (Cancel the player's message from appearing in the chat.)
  19. # then console <command|command2|command3> (A commands to execute as the console. Use %player to get player name. Divide multiple commands by |)
  20. # then warn <message> (A message that is displayed to the player.)
  21. # then kick <optionalResaon> (If set, the player will be kicked with optional message.)
  22. # then notify <permission> <message> (Send a message to all players with specified permission.)
  23. # then fine <amount> (If plugin Vault is installed - take specified amount of money from the player.)
  24. # then log (Caught message will be printed in console and saved in rules_log.txt)
  25. # handle as <handler_name> (Launch actions specified in handlers.yml)
  26. #
  27. # Valid variables:
  28. # %player (The name of the player. Without prefix and suffix.)
  29. # %world (The name of the player's world.)
  30. #
  31. # Supports color codes with '&' character.
  32. # Accepts unicode characters when saved in UTF-8 encoding (tested on Notepad++).
  33. # -------------------------------------------------------------------------------
  34.  
  35. # IP filter. Notice the operator strip which removes specified characters BEFORE the message is checked.
  36. match \b[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}(\.|dot|\(dot\)|-|;|:|,|(\W|\d|_)*\s)+[0-9]{1,3}\b
  37. id 1
  38. before strip [\(\[\]\)]
  39. handle as advertisement
  40.  
  41. # You can add new domains by inserting |your_domain after |me (e.g. |me|io for also blocking .io domains)
  42. match [a-zA-Z0-9\-\.]+\s?(\.|dot|\(dot\)|-|;|:|,)\s?(com|org|net|cz|co|uk|sk|biz|mobi|xxx|eu|me)\b
  43. # If you want to whitelist your server, it is only necessarry to add it once in format:
  44. # website.domain (example: procraft.com)
  45. # To add more domains simply add them after the last one and divide by |
  46. ignore string youtube.com|imgur.com
  47. id 2
  48. before strip [\(\[\]\)]
  49. handle as advertisement
  50.  
  51. # This filter will effectively match f words, also with characters in between like: f.u.c.k or f_uc--k
  52. # If you are not familiar with regular expressions,
  53. # see https://cloud.githubusercontent.com/assets/1918426/8696045/85d005ae-2ae9-11e5-9c5f-d4d07768b4ca.PNG
  54. match \b(f+(\W|\d|_)*(u|O|0)+(\W|\d|_)*c+(\W|\d|_)*k+(\W|\d|_)*)
  55. id 3
  56. then warn Watch your language please.
  57. then replace ****
  58.  
  59. match \b(a|4|e)(s|5|z)(s|5|z)\b|\b(a|4|e)(s|5|z)(s|5|Z)h(o|0)(l|1|!)(e|3)
  60. id 4
  61. then warn Watch your language please.
  62. then replace ****
  63.  
  64. match b(i|!)tch
  65. id 5
  66. then warn Watch your language please.
  67. then replace ****
  68.  
  69. match g(a|e|3)y
  70. id 6
  71. then warn Watch your language please.
  72. then replace ****
  73.  
  74. match (s|5|z)h(i|1|!|e)t
  75. id 7
  76. then warn Watch your language please.
  77. then replace ****
  78.  
  79. match g(a|e|3)y(s|5|z)
  80. id 8
  81. then warn Watch your language please.
  82. then replace ****
  83.  
  84. match (s|5|z)h(i|1|!|e)(i|1|!|e)t
  85. id 9
  86. then warn Watch your language please.
  87. then replace ****
  88.  
  89. match b(i|!)tch(z|2|s|5)
  90. id 10
  91. then warn Watch your language please.
  92. then replace ****
  93.  
  94. match b(i|!)(a|e)tch(z|2|s|5)
  95. id 11
  96. then warn Watch your language please.
  97. then replace ****
  98.  
  99. match b(i|!)(a|e)tch
  100. id 12
  101. then warn Watch your language please.
  102. then replace ****
  103.  
  104. match f(a|4|e)g
  105. id 13
  106. then warn Watch your language please.
  107. then replace ****
  108.  
  109. match f(a|4|e)g(z|s|5)
  110. id 14
  111. then warn Watch your language please.
  112. then replace ****
  113.  
  114. match f(a|4|e)gg(o|0|e)t
  115. id 15
  116. then warn Watch your language please.
  117. then replace ****
  118.  
  119. match f(a|4|e)gg(o|0|e)t(z|s|5)
  120. id 16
  121. then warn Watch your language please.
  122. then replace ****
  123.  
  124. match c(u|o|0)m
  125. id 17
  126. then warn Watch your language please.
  127. then replace ****
  128.  
  129. match c(u|o|0)mm(i|!|1)ng
  130. id 18
  131. then warn Watch your language please.
  132. then replace ****
  133.  
  134. match c(u|o|0)m(i|!|1)ng
  135. id 19
  136. then warn Watch your language please.
  137. then replace ****
  138.  
  139. match \b(s|5|z)(e|3)x\b
  140. id 20
  141. then warn Watch your language please.
  142. then replace ****
  143.  
  144. match p(e|3)n(1|!|i)(s|5|z)
  145. id 21
  146. then warn Watch your language please.
  147. then replace ****
  148.  
  149. match v(a|4)g(i|1|!)n(a|4)
  150. id 22
  151. then warn Watch your language please.
  152. then replace ****
  153.  
  154. match p(e|3)n(1|!|i)(s|5|z)(e|3)(s|5|z)
  155. id 23
  156. then warn Watch your language please.
  157. then replace ****
  158.  
  159. match v(a|4)g(i|1|!)n(a|4)(5|s|z)
  160. id 24
  161. then warn Watch your language please.
  162. then replace ****
  163.  
  164. match p(u|0|o)(5|s|z)(5|s|z)(y|e|i|1|!)
  165. id 25
  166. then warn Watch your language please.
  167. then replace ****
  168.  
  169. match p(u|0|o)(5|s|z)(5|s|z)(y|e|i|1|!)(e|3)(5|s|z)
  170. id 26
  171. then warn Watch your language please.
  172. then replace ****
  173.  
  174. match tw(a|4)t
  175. id 27
  176. then warn Watch your language please.
  177. then replace ****
  178.  
  179. match (s|5|z)c(u|0|o)m
  180. id 28
  181. then warn Watch your language please.
  182. then replace ****
  183.  
  184. match (s|5|z)c(u|0|o)m(b|8)(4|a)g
  185. id 29
  186. then warn Watch your language please.
  187. then replace ****
  188.  
  189. match d(!|1|i)ck
  190. id 30
  191. then warn Watch your language please.
  192. then replace ****
  193.  
  194. match d(!|1|i)ck(s|5|z)
  195. id 31
  196. then warn Watch your language please.
  197. then replace ****
  198.  
  199. match (b|8)(0|o|u)(0|o|u)(8|b)
  200. id 32
  201. then warn Watch your language please.
  202. then replace ****
  203.  
  204. match (b|8)(0|o|u)(0|o|u)(8|b)(i|1|!)(e|3)(s|5|z)
  205. id 33
  206. then warn Watch your language please.
  207. then replace ****
  208.  
  209. match t(1|i|!)t
  210. id 34
  211. then warn Watch your language please.
  212. then replace ****
  213.  
  214. match t(1|i|!)t(s|5|z)
  215. id 35
  216. then warn Watch your language please.
  217. then replace ****
  218.  
  219. match f(u|o|0)ck(e|3)r
  220. id 36
  221. then warn Watch your language please.
  222. then replace ****
  223.  
  224. match f(u|o|0)ck(i|1|!)ng
  225. id 37
  226. then warn Watch your language please.
  227. then replace ****
  228.  
  229. match m(o|0|u)th(e|3)rf(u|o|0)ck(e|3)r
  230. id 38
  231. then warn Watch your language please.
  232. then replace ****
  233.  
  234. match d(1|!|i)ld(o|0|u)
  235. id 39
  236. then warn Watch your language please.
  237. then replace ****
  238.  
  239. match cr(a|4)p
  240. id 40
  241. then warn Watch your language please.
  242. then replace ****
  243.  
  244. match
  245. id 41
  246. then warn Watch your language please.
  247. then replace ****
  248.  
  249. match j(e|3)rk(i|1|!)ng
  250. id 42
  251. then warn Watch your language please.
  252. then replace ****
  253.  
  254. match f(4|a)p
  255. id 43
  256. then warn Watch your language please.
  257. then replace ****
  258.  
  259. match f(4|a)pp(i|1|!)ng
  260. id 44
  261. then warn Watch your language please.
  262. then replace ****
  263.  
  264. match (4|a)r(5|s|z)(3|e)
  265. id 45
  266. then warn Watch your language please.
  267. then replace ****
  268.  
  269. match (4|a)r(5|s|z)(3|e)h(o|0|u)l(3|e)
  270. id 46
  271. then warn Watch your language please.
  272. then replace ****
  273.  
  274. match c(o|0|u)ck
  275. id 47
  276. then warn Watch your language please.
  277. then replace ****
  278.  
  279. match (b|8)(a|4)(s|5|z)t(4|a)rd
  280. id 48
  281. then warn Watch your language please.
  282. then replace ****
  283.  
  284. match (b|8)l(o|0|u)wj(o|0|u)(8|b)
  285. id 49
  286. then warn Watch your language please.
  287. then replace ****
  288.  
  289. match (b|8)(o|0|u)n(3|e)r
  290. id 50
  291. then warn Watch your language please.
  292. then replace ****
  293.  
  294. match (b|8)(u|0|o)ll(5|s|z)(i|1|!)t
  295. id 51
  296. then warn Watch your language please.
  297. then replace ****
  298.  
  299. match (b|8)(u|0|o)ttf(u|o|0)ck
  300. id 52
  301. then warn Watch your language please.
  302. then replace ****
  303.  
  304. match c(u|0|o)nt
  305. id 53
  306. then warn Watch your language please.
  307. then replace ****
  308.  
  309. match d(i|1|!)p(s|5|z)h(i|1|!)t
  310. id 54
  311. then warn Watch your language please.
  312. then replace ****
  313.  
  314. match h(a|4)ndj(o|u|0)b
  315. id 55
  316. then warn Watch your language please.
  317. then replace ****
  318.  
  319. match j(i|1|!)(z|s|5)(z|s|5)
  320. id 56
  321. then warn Watch your language please.
  322. then replace ****
  323.  
  324. match n(i|1|!)(g|q)(g|q)(a|4)
  325. id 57
  326. then warn Watch your language please.
  327. then replace ****
  328.  
  329. match n(i|1|!)(g|q)(g|q)(a|4)(s|5|z)
  330. id 58
  331. then warn Watch your language please.
  332. then replace ****
  333.  
  334. match n(i|1|!)(g|q)(g|q)(e|3)r
  335. id 59
  336. then warn Watch your language please.
  337. then replace ****
  338.  
  339. match n(i|1|!)(g|q)(g|q)(e|3)r(s|5|z)
  340. id 60
  341. then warn Watch your language please.
  342. then replace ****
  343.  
  344. match n(e|1|!|i)(g|q)r(o|0|u)
  345. id 61
  346. then warn Watch your language please.
  347. then replace ****
  348.  
  349. match pr(i|1|!)ck
  350. id 62
  351. then warn Watch your language please.
  352. then replace ****
  353.  
  354. match wh(o|0|u)r(3|e)
  355. id 63
  356. then warn Watch your language please.
  357. then replace ****
  358.  
  359. match h(o|0|u)(3|e)
  360. id 64
  361. then warn Watch your language please.
  362. then replace ****
  363.  
  364. # Swastika
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement