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 Dec 27, 2012-
View User Profile
-
Send Message
Posted Dec 27, 2012Hey Tremor or Dreamphreak: I created a brand new 1.4.6 server with CraftBukkit Beta Build (1.4.6-R0.1) and downloaded pwnfilter 2.1.1, did the normal start up to create new files since I didn't want to use the old ones. Looked at the new generated rules.txt file that it created, saw no difference so I replaced it with this one:
http://pastebin.com/BQ9fkWh6 (This is a test filter, please do not use it on your own server, it will break it)
This is the filter I'm currently working on. I tested the following words and here are the results:
I did a fresh install of everything and ported over my filter. Some words work, some don't. What's going on? Is it something I'm doing wrong? Granted the filter isn't finished but still, if it worked in 1.4.4, it should work in 1.4.6 I would think. Ideas?
-
View User Profile
-
Send Message
Posted Dec 27, 2012OK so how do i get it to catch all words with CAPS. I dont understand how to catch every single word other then making a filter for each.
-
View User Profile
-
Send Message
Posted Dec 26, 2012@Exagerate
If his group was recently changed check for a typo in the group name. I have made those before and it effectively strips a player of any permissions.
-
View User Profile
-
Send Message
Posted Dec 26, 2012@mrchasez Check your config.yml you have a bad error in your warnmsg.
warnmsg: '&6That type of language isn't allowed!'
Notice the word isn't has an apostrophe in it. Either use an escape character for the apostrophe or change the sentence to say IS NOT. This is breaking your config and therefor the entire plugin.
As far as highest priority to add color that probably means your main chat plugin is disabling color at a lower priority. Thus why we added this priority changing scheme. Fix your config.yml and you should be fine. Might i ask what your primary chat plugin is?
@Exagerate It's just one player but no one else? I can't see how this could be PwnFilter. Do you run any plugins that use prefix/suffix/nick player names? What is your primary chat plugin? Suggestion is to remove PwnFilter briefly and see if that fixes the issue, then get back to me.
@EpicATrain 2.1.2 PwnFilter has been pretty solidly tested. It's the addition of more user configurable stuff that is causing the most issues. If your config.yml and rules.txt are solid, then you should have no problems.
-
View User Profile
-
Send Message
Posted Dec 26, 2012@mrchasez
match \bl+a+g+\b
-
View User Profile
-
Send Message
Posted Dec 26, 2012@EpicATrain
Here is the part i am having issues with:
match l+a+g
then replace cookies
People can't say "Lag" but they can't say "vilLAGer" either (villager). How do i only stop lag and not anything containing "lag".
Please post the correct setup, ill just copy paste.
-
View User Profile
-
Send Message
Posted Dec 26, 2012I will be updating my language filter for this plugin once I've gotten notice that the new 2.x pwnfilter is working accurately.
-
View User Profile
-
Send Message
Posted Dec 26, 2012Is it possible that this plugin is causing one of my players to report being unable to speak other than /msg ? If so, what can I do about it?
-
View User Profile
-
Send Message
Posted Dec 26, 2012@tremor77
Yes - I want to be able to do it for the full string, and also for just the matched substring. I was thinking on a filter to auto-capitalize the first letter in every sentence among other things.
-
View User Profile
-
Send Message
Posted Dec 26, 2012@tremor77
Slight issue. Here is the error: http://pastie.org/5581386
Here is my config: http://pastie.org/5581392
I can't find the issue, and priority being on highest is causing that error. The plugin is working fine. However it takes highest priority to add color, which is weird.
Also the messages don't work. It adds default message no matter what i put. Also it tells the person they are burned, but don't burn them. Brilliant =_=
-
View User Profile
-
Send Message
Posted Dec 26, 2012Pending File Approval
PwnFilter version 2.1.2 addresses a fix to some bugs that have been reported with replacement text not working.
http:dev.bukkit.org/server-mods/pwnfilter/files/17-pwn-filter-v2-1-2/
Please delete your config.yml for this version, some updates have been added... see the changelog for details.
- Options have been added to the config.yml to set default warn, kick, burn and kill messages with color code support. These messages can be overridden via rules.txt on a per match basis. This plugin now does so much and is getting more complex.. I think I will be creating a video tutorial soon on how to install, use and configure.
-
View User Profile
-
Send Message
Posted Dec 26, 2012@tremor77
Thanks :D For now ill just leave burn out. Awesome plugin! (had a lot of fun with it as well :P )
-
View User Profile
-
Send Message
Posted Dec 26, 2012BUG FOUND
It seems that on "then burn" there may be a bug where the player is burned but the text is not replaced.
I'm not sure exactly what changed to contribute to this in 1.4.6 but I will be working on a fix for it, which will be version 2.1.2 (expected by maybe Jan 1st).
-
View User Profile
-
Send Message
Posted Dec 25, 2012@Fexlom You want to match a word then make it all CAPS? Different, but doable - I'll make a note to add it.
@vinzenco Thanks, glad you enjoy it.
@Boosted_Death Send me a PM with some more details of the problems you are having and I'll see what I can come up with for you.
-
View User Profile
-
Send Message
Posted Dec 25, 2012This plugin is very awsome! Thank you for this plugin :)
-
View User Profile
-
Send Message
Posted Dec 25, 2012Could you add a post match operator to make the match uppercase?
-
View User Profile
-
Send Message
Posted Dec 25, 2012Tremor77 Please help me set it up im confused and it wont work
-
View User Profile
-
Send Message
Posted Dec 25, 2012@externo6
Is your "then burn" before your "then replace" in the rules? Try flip flopping them. I will try what you've got, I think I know what the issue might be.. and can probably come up with a decent fix for it.
-
View User Profile
-
Send Message
Posted Dec 25, 2012@externo6
Ok, ive found the issue.
if i have then console burn &player 3 in the match it does not replace the word. Remove the burn command and it works fine.
Is this possible for you to fix or does it lie elsewhere?
Thanks