Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a base file for you to configure.
- # To maintain backward compatibility with PwnFilter 3.1.x this just
- # points to the main rules.txt, which was moved from the plugin directory.
- # Please refer to http://dev.bukkit.org/bukkit-plugins/pwnfilter
- # for more documentation on how to configure these files.
- ####### HATE SPEECH - INSTABAN #######
- match n[^a](gg|99)+(a|er|uh)
- rule HS1 Nigger
- then deny
- # then console ban %player$ HS1 (%rawstring%)
- then warn Swearing is not allowed.
- then log
- match \bfag+(s)?\b|fag+.t|gay
- rule HS2 fag/gay
- ignore string fight
- then deny
- # then console ban %player% HS2 (%rawstring%)
- then warn Swearing is not allowed.
- then log
- match (i hate|fuck)+ this server|this server is (shit|crap)+|server sucks
- rule HS3 Server Hating
- then replace This server is great!
- then console ban %player% Server Hating.
- then log
- # NOTE: You could also use a command from a ban manager, eg:
- # then console tempban %player% 7d %ruleid% (%rawstring%)
- ######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.
- ###### BASIC FILTERS
- # REPLACE "ass" but not anything else, such as "grass", "glass", "bass", "ambassador", or even "assassin"
- # http://www.regular-expressions.info/wordboundaries.html
- match \bass\b
- then replace ***
- # REPLACE F Bomb variants with fudge. Also catches ffffuuuccckkk
- # http://www.regular-expressions.info/repeat.html
- match f+u+c+k+|f+u+k+|f+v+c+k+|f+u+q+
- then randrep fudge|frack|ferp|fork|fnarg
- then warn Watch your language please
- then log
- # REPLACE any from a list of naughty words with "meep", then burn the player.
- # http://www.regular-expressions.info/alternation.html
- match cunt|whore|fag|slut|queer|bitch|bastard
- then replace meep
- then burn &4You swear, you get burnt!
- # DENY & BAN use of the N word by hooking to another plugins ban command
- match n[^a]gg+(a|er|uh)
- then console ban &player -s Banned for racism!
- then deny
- then log
- # FIX the .command typo with /command
- match ^\.(?=[a-z]+)
- then replace
- then command
- # Randrep example and then kill people saying bad things about your server!
- match .*this server sucks.*|.*hate this server.*
- then randrep I love this server!|This server rocks!|This is the greatest server ever!
- then kill
- #Male Genitals (Blocks Dick and Penis. Sample: http://i.imgur.com/UXX4ddk.png)
- match \bd\s*i\s*c?\s*k\b|\bp\s*e\s*n(\s|\.)*i\s*s\b
- then replace
- then log
- #Female Chest (Blocks Boob, Breast, Tit. Sample: http://i.imgur.com/VQV5tSW.png)
- 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
- then replace
- then log
- #Racism (Blocks nigga. Sample: http://i.imgur.com/dBZ9Kfs.png)
- match \bn\s*i\s*g\s*(g\s*)?(a|a\s*h|e\s*r)?\b
- then replace
- then log
- #Sexual Harassment (Blocks lesbian, lez, lesbo, dyke. Sample: http://i.imgur.com/u0S0Imz.png)
- 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
- then replace
- then log
- #(Blocks lmao, lmfao. Sample: http://i.imgur.com/7B6Fy5j.png)
- match \bl\s*m(\s*f)?\s*a\s*o\b
- then replace
- then log
- ###### FIXES FOR 'aaaaa', 'hihihihihihhi', 'lolololololol' type spam.
- # TRIM a single repeated character to 2 repeats maximum
- # fixes "aaaaaaaaaaaaa"
- match (.)(?=\1\1+)
- then replace
- # TRIM 2 repeated characters to 2 repeats maximum:
- # fixes "hihihihihi"
- match (..)(?=\1\1+)
- then replace
- # TRIM 3 repeated characters to 2 repeats maximum
- # fixes "lollollollollol"
- match (...)(?=\1\1+)
- then replace
- ###### COMPLEX FILTERS
- # REPLACE CAPS!!! New in Version 2.0.0!!! Yes.. not just block or warn but replace with lower
- match (\p{Lu}|\s){6,120}
- then lower
- # 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.
- 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})
- ignore string 192.168.1.1|74.34.194.98|google.com|youtube.com|bukkit.org|minecraft.net|minecraftwiki.net|pwn9.com
- then replace Pichucraft.Enjin.com
- then kick Do Not Advertise On Our Server
- then log
- ###### FUN Filters - use "rewrite" instead of replace to maintain colors
- # FUN: Shit
- match shit
- then replace wonderful
- # FUN: Fuck
- match planet fuck|fucking
- then replace glurg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement