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 26, 2014Hey, I have a bit of a problem. People love to argue that they aren't cursing, but typing out the words that are filtered. It's getting annoying to deal with these trolls, so I decided to make it so certain words are colored. The problem is, only one of the words are colored if they're said in the same sentence. For example, the f word is "frack" while sht (Sorry) is "meep". The config for words are &cMeep&f. I put &f in the back so it only makes meep colored, not the entire sentence. The problem is, I believe this is making other words that should be light red, white. Anyone have a fix for this? I'll post my config here, incase you need to see it.
Disclaimer, the config does swearing in it.. obviously: http://pastie.org/9505733
-
View User Profile
-
Send Message
Posted Aug 25, 2014@Liger_XT5
No, the lines are seperated. I just misspoke.
-
View User Profile
-
Send Message
Posted Aug 23, 2014@godgodgodgo
Temporary remove your chat related plugins besides Pwnfilter. If anything, you have the same issue I had. I used zChat for a while and after a while, I noticed pwnfilter wasn't working as it should have. As soon as I disabled zChat, pwnfilter was editing chat as it was suppose to.
-
View User Profile
-
Send Message
Posted Aug 23, 2014@Liger_XT5
This is because of the way that async events get handled. Try using the "then respond <<END" multiline response, noted in the release notes: http://dev.bukkit.org/bukkit-plugins/pwnfilter/files/46-pwn-filter-v3-3-0/
Better documentation is also on my todo list.
-Sage
-
View User Profile
-
Send Message
Posted Aug 23, 2014@godgodgodgo
The plugin needs updating, and it has been on my todo list to get back to it for some time, but I've had other priorities.
That said... There is _nothing_ wrong with the plugin on 1.7.10. If the rules aren't working, there's something wrong with your config. We are running the plugin just fine on our servers at Pwn9.com
-Sage
-
View User Profile
-
Send Message
Posted Aug 23, 2014Seems like the majority of rules aren't working on 1.7.10, even the default censorship ones. The plugin needs updating.
For me only caps conversion is working.
-
View User Profile
-
Send Message
Posted Aug 22, 2014@rocky123xo
I don't have access to testing it, but if you are putting the config into in single lines, that is your first problem. If not, I'll see if I can do a test of the match section.
match ^\/(msg bay)\b then deny then warn &cPlease do not message Bay.
-
View User Profile
-
Send Message
Posted Aug 22, 2014I would really like to find out why the following line is not working...
match ^\/(msg bay)\b then deny then warn &cPlease do not message Bay.
I have tried this as well...
match /msg bay then deny then warn &cPlease do not message Bay.
-
View User Profile
-
Send Message
Posted Aug 11, 2014-
View User Profile
-
Send Message
Posted Jul 25, 2014I've noticed a small bug with "then warn", mostly in large lists. Example:
The problem is, sometimes one of the lines of "then warn" is misplaced in chat.
http://gyazo.com/04ed1cf6224a5462b5385d914a7a32c0
-
View User Profile
-
Send Message
Posted Jul 24, 2014Hey folks,
I've been pre-occupied for a while, but I'm not gone. :) Life has been busy. PwnFilter is not dead, though, and I've got a bunch of stuff in the works.
I will try to go through all the open issues in the tickets, and try to close them off in the next couple of weeks.
-Sage
-
View User Profile
-
Send Message
Posted Jul 24, 2014@Minecraftfan105
Yes, absolutely.
When writing your rules, you can write an "ignore" clause, eg:
match (www)\..*\.com (simplistic example, probably not useful) ignore myforums.com
PwnFilter is much more than an anti-ad filter. That makes it complicated to set up, but it's extremely powerful. If you want some sample rules, check out our Samples and Forum.
-
View User Profile
-
Send Message
Posted Jul 24, 2014Hi there, Before I install this plugin on my server I want to know if there's a white list or not. I'd like players to be able to say the url to my forums, but most anti ad plugins don't allow you to whitelist a URL.
Thanks, Minefan
-
View User Profile
-
Send Message
Posted Jul 16, 2014Completely ignores this command in the rules:
<<code match ^/msg Dah_Frozen rule A5 /msg Dah_Frozen then deny then warn &8[&aJunglecraft&8] &7Please do not message the Owner. If it is &cImportant &7Report it to the bugs/glitches area of the forums or contact a member of staff.
<</code>>
-
View User Profile
-
Send Message
Posted Jul 12, 2014@Mcraftpete
Totally strange... PwnFilter has a check to make sure that no regex takes more than 1s to execute. These regexes don't seem to be problematic, and the text they are checking doesn't appear to cause any odd backtracking.
That said, how is it possible that these people are sending multi-line chat strings?
Is there some other plugin on the server that hooks into chat?
-Sage
-
View User Profile
-
Send Message
Posted Jul 12, 2014Hi, I get a few time outs from this plugin which closes the server.
http://pastebin.com/N2snSvhM
Not sure what they were talking about :P but still something they said triggered the timeout
-
View User Profile
-
Send Message
Posted Jul 11, 2014with the /pfcls command it also clears the console can this be stopped?
-
View User Profile
-
Send Message
Posted Jul 10, 2014I find, once I do a global mute (/pfmute) everyone just starts spamming /afk is there anyway to have this also disabled when the global mute is on?
-
View User Profile
-
Send Message
Posted Jul 6, 2014@Liger_XT5
Finally found the culprit to my issues. zChat was not allowing the chat to be altered...
-
View User Profile
-
Send Message
Posted Jul 6, 2014@anovickis
I have a error too but a different. I hope a bug fix will come :(