Guest User

Untitled

a guest
Jan 20th, 2016
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This is a base file for you to configure.
  2. # To maintain backward compatibility with PwnFilter 3.1.x this just
  3. # points to the main rules.txt, which was moved from the plugin directory.
  4. # Please refer to http://dev.bukkit.org/bukkit-plugins/pwnfilter
  5. # for more documentation on how to configure these files.
  6.  
  7. ####### HATE SPEECH - INSTABAN #######
  8.  
  9. match n[^a](gg|99)+(a|er|uh)
  10. rule HS1 Nigger
  11. then deny
  12. # then console ban %player$ HS1 (%rawstring%)
  13. then warn Swearing is not allowed.
  14. then log
  15.  
  16. match \bfag+(s)?\b|fag+.t|gay
  17. rule HS2 fag/gay
  18. ignore string fight
  19. then deny
  20. # then console ban %player% HS2 (%rawstring%)
  21. then warn Swearing is not allowed.
  22. then log
  23.  
  24. match (i hate|fuck)+ this server|this server is (shit|crap)+|server sucks
  25. rule HS3 Server Hating
  26. then replace This server is great!
  27. then console ban %player% Server Hating.
  28. then log
  29. # NOTE: You could also use a command from a ban manager, eg:
  30. # then console tempban %player% 7d %ruleid% (%rawstring%)
  31.  
  32. ######NOTE: Rules are applied in the order they are listed in this file. Using the "then abort" action will stop further rule processing. So, if you want a rule to take priority over the others, list it first in this file. If you want a rule to stop further processing, use "then abort" as an action to that rule.
  33.  
  34. ###### BASIC FILTERS
  35.  
  36. # REPLACE "ass" but not anything else, such as "grass", "glass", "bass", "ambassador", or even "assassin"
  37. # http://www.regular-expressions.info/wordboundaries.html
  38. match \bass\b
  39. then replace ***
  40.  
  41. # REPLACE F Bomb variants with fudge. Also catches ffffuuuccckkk
  42. # http://www.regular-expressions.info/repeat.html
  43. match f+u+c+k+|f+u+k+|f+v+c+k+|f+u+q+
  44. then randrep fudge|frack|ferp|fork|fnarg
  45. then warn Watch your language please
  46. then log
  47.  
  48. # REPLACE any from a list of naughty words with "meep", then burn the player.
  49. # http://www.regular-expressions.info/alternation.html
  50. match cunt|whore|fag|slut|queer|bitch|bastard
  51. then replace meep
  52. then burn &4You swear, you get burnt!
  53.  
  54. # DENY & BAN use of the N word by hooking to another plugins ban command
  55. match n[^a]gg+(a|er|uh)
  56. then console ban &player -s Banned for racism!
  57. then deny
  58. then log
  59.  
  60. # FIX the .command typo with /command
  61. match ^\.(?=[a-z]+)
  62. then replace
  63. then command
  64.  
  65. # Randrep example and then kill people saying bad things about your server!
  66. match .*this server sucks.*|.*hate this server.*
  67. then randrep I love this server!|This server rocks!|This is the greatest server ever!
  68. then kill
  69.  
  70. #Male Genitals (Blocks Dick and Penis. Sample: http://i.imgur.com/UXX4ddk.png)
  71. match \bd\s*i\s*c?\s*k\b|\bp\s*e\s*n(\s|\.)*i\s*s\b
  72. then replace
  73. then log
  74.  
  75. #Female Chest (Blocks Boob, Breast, Tit. Sample: http://i.imgur.com/VQV5tSW.png)
  76. match \bb\s*o\s*o\s*b\b|\bb\s*r\s*e\s*a\s*s\s*t(\s*s)?\b|\bt\s*i\s*t(\s*s|\s*t\s*y|\s*t\s*i\s*e\s*s)?\b
  77. then replace
  78. then log
  79.  
  80. #Racism (Blocks nigga. Sample: http://i.imgur.com/dBZ9Kfs.png)
  81. match \bn\s*i\s*g\s*(g\s*)?(a|a\s*h|e\s*r)?\b
  82. then replace
  83. then log
  84.  
  85. #Sexual Harassment (Blocks lesbian, lez, lesbo, dyke. Sample: http://i.imgur.com/u0S0Imz.png)
  86. match \bl\s*e(\s*s|\s*z)\s*b?(\s*o|\s*i\s*a\s*n)?\b|\bd\s*y\s*k\s*e\b
  87. then replace
  88. then log
  89.  
  90. #(Blocks lmao, lmfao. Sample: http://i.imgur.com/7B6Fy5j.png)
  91. match \bl\s*m(\s*f)?\s*a\s*o\b
  92. then replace
  93. then log
  94.  
  95.  
  96. ###### FIXES FOR 'aaaaa', 'hihihihihihhi', 'lolololololol' type spam.
  97.  
  98. # TRIM a single repeated character to 2 repeats maximum
  99. # fixes "aaaaaaaaaaaaa"
  100. match (.)(?=\1\1+)
  101. then replace
  102.  
  103. # TRIM 2 repeated characters to 2 repeats maximum:
  104. # fixes "hihihihihi"
  105. match (..)(?=\1\1+)
  106. then replace
  107.  
  108. # TRIM 3 repeated characters to 2 repeats maximum
  109. # fixes "lollollollollol"
  110. match (...)(?=\1\1+)
  111. then replace
  112.  
  113.  
  114.  
  115.  
  116. ###### COMPLEX FILTERS
  117.  
  118. # REPLACE CAPS!!! New in Version 2.0.0!!! Yes.. not just block or warn but replace with lower
  119. match (\p{Lu}|\s){6,120}
  120. then lower
  121.  
  122. # REPLACE AN IP ADDRESS / DOMAIN NAME and IGNORE ones you don't want to block, replace it with your url, kick the player with a message and log the event.
  123. match \b\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\p{P}*\d{1,3}+\b|([\w-\.]+)((?:[\w]+\.)+)([a-zA-Z]{2,4})
  124. ignore string 192.168.1.1|74.34.194.98|google.com|youtube.com|bukkit.org|minecraft.net|minecraftwiki.net|pwn9.com
  125. then replace Pichucraft.Enjin.com
  126. then kick Do Not Advertise On Our Server
  127. then log
  128.  
  129.  
  130.  
  131.  
  132. ###### FUN Filters - use "rewrite" instead of replace to maintain colors
  133.  
  134. # FUN: Shit
  135. match shit
  136. then replace wonderful
  137.  
  138. # FUN: Fuck
  139. match planet fuck|fucking
  140. then replace glurg
RAW Paste Data