PwnFilter
Update: 2023-04-20 - PwnFilter EOL Statement
Major changes to chat from Mojang that include chat reporting and signed messages may render PwnFilter no longer usable. The developers of PwnFiilter have not maintained the plugin since 2016, and it has continued to work up until now. We don't see a new version coming out anytime soon and urge server owners to find an alternative. We hear good things about VentureChat - https://www.spigotmc.org/resources/venturechat.771/
-tremor.
About PwnFilter
PwnFilter is way more than just your average word-blocking plugin, PwnFilter uses the power of Regular-Expressions ("RegEx") to give you a highly effective and highly configurable plugin to filter anything you want from chat! Matching words can be rewritten, logged, blocked, and managed, depending on the rules you define. Use PwnFilter for:
- Extremely effective chat/command filtering: Filter anything you want with RegEx!
- Extremely effective curse/swear word filtering, warn users who use bad language, turn their profanities into harmless language, or just deny their message entirely!
- Assign appropriate punishment levels based on severity.
- Anti-Advertisement: IP/URL filtering
- Make fun chat replacements for your server's inside-jokes.
- Single line spam filtering: Remove repetitive characters like hiiiiiiiiiiiii to hi.
- CAPS Blocking capability
- Typo correction: Replace common and annoying typos like "teh" to "the" or "u" or "you"
- Customizable warning messages
- Command aliases: Automatically recognize a !command and change to /longer command, Stop yourself from accidentally sending those embarrassing .commands to chat for everyone to see.
- A few built-in punishments like burn, kill, fine (charge money!), warn, kick, and ban. Or simply utilize the "then console" action to make your server console execute almost any command from any other plugin as if you typed it yourself in the console window, especially if you use a plugin that adds a plethora of punishments, like PunishMental, or use it to make PwnFilter send the appropriate commands to your favorite ban-management system to let it handle what to do!
Think of this plugin as a platform for the power of RegEx, the matching rules are 100% entirely up to you, and there are a hundred ways to do something. The possibilities are endless, the power is as dynamic as you want it to be depending on how much effort you put into having the best RegEx rules.
PwnFilter is a revival and complete rewrite of the RegexFilter plugin by FloydATC. Thanks to DreamPhreak for helping with this Bukkit page, to Sage905 for taking over the latest branch of development making PwnFilter even better than ever, and to EpicAtrain for developing comprehensive regex rules for server owners to use.
Features:
- Filter Chat! (of course)
- Filter Item Names! (Anvil)
- Filter Signs!
- Filter Commands!
- Filter Console!
- Filter Books! (Coming in next version!)
- Filter Nametags!
- Built-in anti-spam feature can be enabled in config.
- Commands for OP or by permission node.
- Supports color message replacement.
- Globally clear all player's chat windows with "/pfcls".
- Global mute with "/pfmute" - stops all server chat and commands for making admin announcements.
- Command typos beginning with certain characters can be stopped (like . and 7, accidentally instead of / and &).
- Optionally recover those typos and execute the command as intended.
- Define your own macros or command aliases.
- Simple but powerful configuration with built-in debugging.
- Each regular expression is compiled only once => very fast.
- Able to reload all your PwnFilter rules & config files without needing to restart the server with "/pfreload".
- Optionally kick or warn players on rule matches AND/OR:
- Execute commands from console or other plugins.
- Use randrep action to replace swears with a random multiple option.
- Use lower action to replace text to all lowercase (great for those CAPS chatters).
- True command aliases, link faux commands like /wave to /me waves at you.
- Customizable 'permission denied' messages
Issues & Conflicts
Plugin Conflicts: If you notice that PwnFilter conflicts/interferes with another chat-related plugin, edit your config.yml, go to the "ADVANCED" section at the bottom, unhide the priority you want to change (by removing the # in front of the line), and change the priority from the default setting "Lowest" to another setting like "Highest". This can sometimes resolve conflicts, otherwise ask on our forum or create a ticket.
Permission Bypass: The permission node pwnfilter.bypass is automatically granted to OP and players with * permission nodes. If you do not want these players bypassing the filter at all, you must negate this permission node for them in your Permissions Plugin's files.
Plugin Metrics
This plugin utilizes Hidendra's plugin metrics system, which means that some information is collected and sent to mcstats.org. If you wish to disable this feature, you can do so by opting out, which you can do in the PluginMetrics' config file under /YourServer/plugins/PluginMetrics/
Links & Info
- PwnPlantGrowth - Customize, modify, block all plant growth with varying configurations, including biome based and light level based farming.
- PwnChickenLay - Configure or block how fast chickens can lay eggs, or replace eggs with other items like diamonds, bricks, anything you can think of.
- ResPwn - Configure useful and fun player respawn options like temporary forcefields, armor and weapons.
- PwnPvpBalance - Balance the tide of uneven game mechanics with options to help players with poor PvP skills be more competitive, and give good players a better challenge.
- PwnFilter Regex Forum - Have questions about using RegEx or want to show your rules.txt off? Visit our RegEx forum here on DBO!
- Pwn9.com - Visit the Pwn9 Gaming Community, the place we call home. Check out our Minecraft servers, other game servers and fun gaming community.
- Discord Server: Join us @ https://discord.gg/qde6rVn - feel free to ask PwnFilter or RegEx questions on the channel or just come hang out with us.
- Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk. ci.sagely.ca
Donate
All of our "Pwn-" plugins are completely free of charge. We work hard to bring you the best, powerful, and up-to-date plugins. If we have helped you in any way, please consider a donation of any amount (Using the "Donate" button on the top-right of this page, or clicking HERE). All donations are GREATLY appreciated for all of the time that goes into this plugin and support.
EpicATrain's version 10.0 filter has been temporarily removed, due to a few issues. The classic language filter is still available here: http://pastebin.com/u/EpicATrain
-
View User Profile
-
Send Message
Posted Aug 13, 2012@wolfenguard
If your admins have OP then I believe they will get bypass no matter what. Does PEX work with negate like that or should you do "pwnfilter.bypass:false"?
@thernztrom
Ok this is a tricky one - but it's doable.. Try something like this
This will probably match the entire line so a replace/rewrite will likely replace the whole sentence.
@antoinne30
Check the Regex Sample page I believe I have a URL blocker posted there. Also, for anyone else asking Regex questions, there is a Forum on this page - I'd prefer to move Regex chat into there.. and leave the main section here for bugs/features reqs.
-
View User Profile
-
Send Message
Posted Aug 12, 2012Is there anyway to block a chat message if 2 words are found in a message. Example: If the words "skype" and "jones" are in the same message it will get blocked. But if someone just mentions skype in a message or jones it wont be blocked. If not, could an "AND" function be added to the plugin? :)
-
View User Profile
-
Send Message
Posted Aug 12, 2012Love the plugin... using it ever since 'regexfilter'. I have a problem with the rules bypassing admins even when '- -pwnfilter.bypass' is in place in PEX.
-
View User Profile
-
Send Message
Posted Aug 12, 2012nice i have ip spammers on my server i ip ban them but they have a bit much friends who want to help ruin me this works fine ty. could you also example how to make a filter for like www.thisismyserver.com addresses those are also spammend and i cant remove then so can u make an example for blocking this.
-
View User Profile
-
Send Message
Posted Aug 12, 20121.8.0 is out with a few new features! Renamed "/pwnfilter reload" command to just "/pfreload" and added "/pfcls" - a command to globally wipe the entire chat screen. Plus some reworked permissions and fixed the silly console issue (console can now execute the above commands). I also cleaned up enough code to cut the filesize in half!
-
View User Profile
-
Send Message
Posted Aug 11, 2012Does Towny Chat have some known interference with this plugin? I'm testing with it and it doens't seem to be working at all.
Edit: meh nvm it works xD
-
View User Profile
-
Send Message
Posted Aug 10, 2012@PhanaticD
I noticed that myself, it worked in previous versions so I'll have see what I changed that got that mixed up.. reworked a lot of the old code in this to be more efficient in 1.7 but, must have missed that somewhere. I'll get it fixed up asap.
-
View User Profile
-
Send Message
Posted Aug 9, 2012can u let console reload the rules please :)
-
View User Profile
-
Send Message
Posted Aug 7, 2012@SharkROAR
Have you tried simply pasting them into the rules.txt? I'll test it out later myself, could be some way that Bukkit translates non-standard symbols that I'm unaware of, or even file format issues, I believe UTF-8 is the standard. I know standard RegEx will work on those just fine. Adding to my to-do list and I'll get back to you.
-
View User Profile
-
Send Message
Posted Aug 7, 2012Is there any way to get letters of the german language like ß or ö/ä/ü into the filter?
-
View User Profile
-
Send Message
Posted Aug 7, 2012@tremor77
thx ;)
-
View User Profile
-
Send Message
Posted Aug 6, 2012Releasing PwnFilter 1.7 - due to changes in Bukkit for Minecraft 1.3.1 - PwnFilter 1.7 will NOT work on CB 1.2.5, this build is for CB 1.3.1 and later only!
-
View User Profile
-
Send Message
Posted Aug 6, 2012@rasnyderiii
I'll see what I can come up with for anti-caps - ultimately with RegEx the best you can do is look for X number of caps in a row like. ABCDEFG and if you have that many caps in a row, then you can deny the message for too many caps. Someone could easily avoid the filter and be terribly annoying by TyPiNg LiKe ThIs. Unless someone out there knows their RegEx better than I do and care share a good example.
There may be better anti-caps plugins that specifically designed to count total CAP letters vs. total message length.
On another note, changes in 1.3.1 Bukkit Developmental builds regarding chat may create some issues with PwnFilter. They've made some updates fundamentally changing chat events... we'll see if I need to do a redesign or not when the RB comes out.
-
View User Profile
-
Send Message
Posted Aug 6, 2012Fantastic plugin. And I have used many!
Any better anti caps example? This one seems to deny for very odd reasons.
-
View User Profile
-
Send Message
Posted Aug 2, 2012@Hans6666
No problem :)
Totally unrelated but I just made PwnFilter replace any /mute command via the rules.txt -
the match . matches any an all characters, so anything typed, period. The permission to use the rule, deny the message, and optional warn. And it's persistant through logouts and server restarts. Create an !alias to add the permission through whatever perms system you use to a player and voila... another extension of this plugin's abilities.
-
View User Profile
-
Send Message
Posted Aug 2, 2012ok thanks for the info. and pwnfilter works fine with dev-build...sorry for false-positive
greetz
-
View User Profile
-
Send Message
Posted Aug 2, 2012@Hans6666
I won't be releasing a build for this for 1.3.1 until there is a 1.3.1 OFFICIAL Recommended Build release from Bukkit. There's no point in trying to get out ahead on development builds when they may just change something entirely between dev build versions and I have to do it all over again.
Also, saying "doesn't work" doesn't really help much. Are there any errors in your server.log you can reference? That way when I do get to building this against 1.3.1 I can know what to look for. Thanks for letting me know though.
-
View User Profile
-
Send Message
Posted Aug 2, 2012doesnt work in 1.3.1
-
View User Profile
-
Send Message
Posted Aug 2, 2012would be great to also block the words via /msg, /tell and /mail send
with this they can still swear etc
thanks
-
View User Profile
-
Send Message
Posted Aug 2, 2012i love
match minecraft.gs|minecraft.to|come all on this server
then deny
then command banip &player no advertisement :)
very much :D