Guest User

Untitled

a guest
May 26th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. # PwnFilter rules.txt - Define Regular Expression Rules
  2.  
  3. # SAMPLE RULES http://dev.bukkit.org/server-mods/pwnfilter/
  4.  
  5. # NOTE: ALL MATCHES AUTOMATICALLY IGNORE CASE
  6.  
  7. # Each rule must have one 'match' statement and at least one 'then' statement, everything else is optional.
  8.  
  9. #
  10.  
  11. # match <regular expression>
  12.  
  13. #
  14.  
  15. # events <chat,command,sign> (This format only applies to events listed. default = all events)
  16.  
  17. # OR
  18.  
  19. # events not <chat,command,sign> (This format applies to all events -except- those listed)
  20.  
  21. #
  22.  
  23. # ignore|require <user|permission|string|command> <string> *(optional)
  24.  
  25. # then <replace|rewrite|warn|log|deny|debug|kick|kill|burn|command|console|abort> <string>
  26.  
  27. # For more details visit http://dev.bukkit.org/server-mods/pwnfilter/
  28.  
  29. # In "then command" statements, you can use &world, &player, &string, or &rawstring
  30.  
  31.  
  32.  
  33. # EXAMPLES
  34.  
  35.  
  36.  
  37. # Replace F Bomb variants with fudge. Also catches ffffuuuccckkk
  38.  
  39. match f+u+c+k+|f+u+k+|f+v+c+k+|f+u+q+
  40.  
  41. then replace fudge
  42.  
  43. then warn Watch your language please
  44.  
  45. then log
  46.  
  47.  
  48.  
  49. # Replace a list of naughty words with random word! Let a certain permission swear.
  50.  
  51. match cunt|whore|fag|slut|queer|bitch|bastard
  52.  
  53. ignore permission permission.node
  54.  
  55. then randrep meep|beep|bleep|herp|derp
  56.  
  57. events
  58.  
  59.  
  60.  
  61.  
  62.  
  63. # FIX the .command typo with /command
  64.  
  65. # But don't apply this to signs
  66.  
  67. match ^\.(?=[a-z]+)
  68.  
  69. events not sign
  70.  
  71. then replace
  72.  
  73. then command
  74.  
  75.  
  76.  
  77. # Fun: rewrite tremor with pretty colors. Only let player tremor77 use it
  78.  
  79. # Only do this for chat events
  80.  
  81. match \btremor+\b|\btrem+\b
  82.  
  83. events chat
  84.  
  85. require user tremor77
  86.  
  87. then rewrite &bt&cREM&bor&f
  88.  
  89. # TRIM 3 repeated characters to 2 repeats maximum
  90. # fixes "lollollollollol"
  91. match (...)(?=\1\1+)
  92. then replace
  93.  
  94. # REPLACE CAPS!!! New in Version 2.0.0!!! Yes.. not just block or warn but replace with lower
  95. match (\p{Lu}|\s){6,120}
  96. then lower
Advertisement
Add Comment
Please, Sign In to add comment