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 Mar 24, 2013Is this plugin also an anti-spam and advertising plugin? Or is it just to prevent bad words?
-
View User Profile
-
Send Message
Posted Mar 23, 2013@x_clucky I think I can do that, we'll see if I can get it into 2.3.4 - just wondering if/when ever bukkit will approve 2.3.3 sheesh they are taking forever lately.
-
View User Profile
-
Send Message
Posted Mar 23, 2013@markdf
Yes. One your word that will ban on first attempt, you could do like "then console ban &player reason", and then for the other words, just put "then console warn &player reason".
You should have a seperate plugin that can manage and track warns especially, since pwnfilter doesnt have actual warns built in, let alone track them so they add up to a ban.
-
View User Profile
-
Send Message
Posted Mar 23, 2013Is it possible to ban players on first offence when using certain words, but warn them for the majority of other words not allowed?
-
View User Profile
-
Send Message
Posted Mar 23, 2013@tremor77
Could you please make the command fitler work per filter?
For example, as i stated earlier, "ignore command <cmd>" and "require command <cmd>". Ignore command would apply the filter to all commands except for the ones that you are ignoring, while require command would only apply the filter to the commands that are listed. This seems like the best possible method.
-
View User Profile
-
Send Message
Posted Mar 23, 2013@add5tar Thank you for the appreciation, I do my best to keep this plugin working well because my server relies on it as well. For anyone wondering the 2.3.3 update includes configurable command priority (like the chat priority) to adjust the filter to work with various other plugins, and it will also have a configurable command list that you can specify which commands the filter will watch (if left empty watches all).
-
View User Profile
-
Send Message
Posted Mar 23, 2013@tremor77
Just saw the update notification for v2.3.3 and yet again your awesomeness has made me shout out with excitement!!! :D
I can't thank you enough for such an amazing plugin, which I rely on to keep our server safe every single day! The best I can do is a small donation, which is coming your way right now :)
Keep up the excellent work!
-
View User Profile
-
Send Message
Posted Mar 23, 2013@EncryptedCurse Due to the complexities of RegEx and rules, it would be tough to make one that works really well, but I could probably create one that works at a basic level which can make some easy to use cut n' paste formatted rules.txt entries. PHP is my native programming language so I could make it web based - I'll see what I can whip up.
-
View User Profile
-
Send Message
Posted Mar 22, 2013Would it be possible to create a regex rule generator? :D
-
View User Profile
-
Send Message
Posted Mar 22, 2013@diannetea I'm going to add a commands to filter list to the config.yml in a future update. This way you will be able to say only monitor /tell, /m, /whisper, /shout - etc
however if it's messing up /tp - that means you have a player who's name is in your filter rules.. so that name shouldnt be allowed.. consider a player named bitch.
-
View User Profile
-
Send Message
Posted Mar 22, 2013having name filters now messes up things like /tp :(
Is there any way to add a temp counter for a user repeatedly doing something? Like a 3x you're out kind of rule so I can ban people who repeatedly test the swear filter within a short period of time
-
View User Profile
-
Send Message
Posted Mar 22, 2013@x_clucky
Does my latest update actually inherently add factions support via the command filter? I've never used factions so I wouldn't know how to test it.
-
View User Profile
-
Send Message
Posted Mar 22, 2013@denden216
If you update, you will notice something that prevents the use of censored words in commands. That should help you.
-
View User Profile
-
Send Message
Posted Mar 22, 2013Can you add Factions support? I'm getting alot of issues with people using filtered words in Faction names.
-
View User Profile
-
Send Message
Posted Mar 21, 2013@tremor77
Could you also apply this to item names, so that players can not name items offensive things?
Also, could you add a way for players to bypass the filter with some commands? For example, I want players to be permitted to /msg another player SOME publically offensive terms, but not sexual refrences, harsh language or ip's. I also wanted to make a 18+ chatroom (using herochat and a /m command) which has no filters other than websites.
perhaps add an /ignore cmd <cmd 1> <cmd 2> and /require cmd <cmd 1> <cmd 2> post match action? Also, what are your thoughts on an /ignore regex <pattern> command, it works like /ignore string, with the exception that it ignores a regular expression pattern?
@EncryptedCurse
LOL I was thinking the same thing. Although, I'm unsure if it is possible to specify which commands trigger a filter... As you can see in my little message above... It is useful.
@EpicATrain
I agree, these are all greatly needed features; especially signs... I don't know how many "penis" signs I've removed so far, but it's ridiculous...
@tremor77
I think everyone is getting ticked with Bukkit, it's like they think they own the joint or something... Doing whatever the hell they want without taking into consideration the thought of the developers...
-
View User Profile
-
Send Message
Posted Mar 21, 2013So we can use this as a replacement to MCDocs now, right?
-
View User Profile
-
Send Message
Posted Mar 21, 2013@DreamPhreak
Signs.. derp derp, ok I'll look into it. I think due to the nature of signs though, i'm not sure using the existing rules.txt will be able to apply.
On another note I'm getting a bit ticked at bukkit right now, the 2.3.0 was uploaded over 20 hours ago and it still hasn't been approved.. but other plugins are being approved with 4-5 hours..
-
View User Profile
-
Send Message
Posted Mar 21, 2013@EpicATrain
In due time. Also, private messages is done by command, and commands are watched, therefore private messages are already filtered on the new version!
I would personally like to see signs next.
-
View User Profile
-
Send Message
Posted Mar 21, 2013Hey Tremor, what about my suggestions?
Can you add the following monitors?
Can you also add the following features?
-
View User Profile
-
Send Message
Posted Mar 21, 2013@tremor77
Seriously, THANK YOU! :D The v2.3.2 works perfectly!!! Once again, another awesome update!