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 Feb 13, 2013ok /pex group Admin add "-pwnfilter.bypass"
will solve the only issue i saw concerning OPs
-
View User Profile
-
Send Message
Posted Feb 13, 2013@DreamPhreak
For most fonts, the version of capital EYE is horrible... it's pretty much garbage when capital EYE is the same thing as lowercase ELLE.
I = l (yes, those are two different fonts). i > I (being forced to use capital EYE would annoy the heck outta me. lol).
Now, i don't really care what the kids say in chat... i'm a firm believer in freedom of speech... and i think they need to learn how to solve problems on their own, rather than going to the almighty server Admin to solve their disputes. But i might try this chat filter out just to placate the parents... So i get less complaints from the parents. lol.
it's really bizarre to me that parents wanna limit what their children are exposed to. (Yes, i really just started that sentence with a lowercase letter and ended it with a preposition, don't shoot me :P
-
View User Profile
-
Send Message
Posted Feb 13, 2013Is anyway to create command matching. I deleted one of my plugin and I wanna give them message when they will try to use plugin again.
-
View User Profile
-
Send Message
Posted Feb 12, 2013@EncryptedCurse
Added in 2.2.0 - pwnfilter.bypassmute Also added - pwnfilter.color as a permission.. and a new entry to the config.yml - decolor:true/false
I probably should have put an addendum that decolor probably only works on highest priority - i never did get a chance to check it.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@EncryptedCurseits the same bypass pwnfilter.bypass - although it's not a bad idea I can add a separate bypass for that specifically.. I'll add it to my growing to-do list.
just FYI to all though it's been busy and going to be another busy week or so.. I may get a small update in for 1.4.7 R1.0 with a logging bugfix but I havent really had time to tackle any of the major feature requests.
-
View User Profile
-
Send Message
Posted Feb 10, 2013Is there a permission node to allow someone to bypass the global mute?
-
View User Profile
-
Send Message
Posted Feb 8, 2013Enjoy!
-
View User Profile
-
Send Message
Posted Feb 8, 2013@xclucky
I shot you a PM
-
View User Profile
-
Send Message
Posted Feb 8, 2013Even using rewrite causes the essentials color codes to filter through when a sentence is censored...
For example, I have "i" to filter into "I", so any sentence containing the word "i" that has a &colorCode will let the color go through, even though the player lacks the permission.
&4 i can do this, and it will do this
I can do this, and it will do this << this line being all red
-
View User Profile
-
Send Message
Posted Feb 8, 2013@Phenomenological
Hello Sir/Ma'am! I would be more than happy to assist you. Feel free to add me on skype! I'll send you a PM with my skype information.
-
View User Profile
-
Send Message
Posted Feb 8, 2013@Phenomenological
I am out of ideas. That one to capitalize I when it's by itself, thats what I have on my server, and I looked at chat right now to prove to myself that it is working.
Something else must be affecting this. The only last thing I can say is to try to put it at the top of the rules.txt, and if that still doesnt work, must be a bug of some sort of another plugin interfering with pwnfilter (in that case, could change the priority setting in config.yml).
-
View User Profile
-
Send Message
Posted Feb 8, 2013Nope, still nothing. Just to check I'm not being a massive idiot, the filters I've put in are:
match \bi\b
then rewrite I
and
match i\'
then rewrite I'
-
View User Profile
-
Send Message
Posted Feb 8, 2013@Phenomenological
Hmm. In EpicATrain's filter, it has the same thing except it has rewrite instead of replace.
-
View User Profile
-
Send Message
Posted Feb 8, 2013Yea I corrected the formatting to two lines when putting it into the rules.txt, made certain I reloaded the rules before testing and even reloaded all plugins and tested again for good measure, the filters aren't doing it!
-
View User Profile
-
Send Message
Posted Feb 8, 2013@Phenomenological
Oops, I meant to put the Match on one line, and Then on the line under it.
Also, Yeah it has always worked for me like that. I edited my previous post with how its supposed to be, try it and then come back :p
-
View User Profile
-
Send Message
Posted Feb 8, 2013Oh, replace works between cases like that? That simplifies things. Thanks for the quick reply!
Edit: Just tried it, doesn't work I'm afraid.
-
View User Profile
-
Send Message
Posted Feb 8, 2013@Phenomenological
When its by itself:
And when it has the apostrophe after it:
-
View User Profile
-
Send Message
Posted Feb 8, 2013I've gotten my head around most aspects of the RegEx stuff, but changing case still confuses the hell out of me. Could you quickly let me know how I'd set up a match to change lowercase i into uppercase I when it's an individual word/part of a contraction? So for example:
"i am bored" becomes "I am bored"
"i'm bored" becomes "I'm bored"
And so on? Thanks very much.
-
View User Profile
-
Send Message
Posted Feb 8, 2013@Benas223
Other people have requested this, but its not possible right now.
-
View User Profile
-
Send Message
Posted Feb 8, 2013@deleted_9935739
Well, to answer your question, putting a \ (slash) negates the rule and regex reads it as the actual character. Like if you wanted to catch &, you would do \&, or \(\) for () itself.
to actually have the \ lol.