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 30, 2012ANY DOCS ON HOW TO BLOCK ALL CAPS MESSAGES LIKE THIS? Sorry for all the CAPS, just need to send my question clearly.
-
View User Profile
-
Send Message
Posted Dec 30, 2012Nice video. I watched the first one, but not the second yet.
-
View User Profile
-
Send Message
Posted Dec 30, 2012@EpicATrain Good work! How you like my video tutorials?
-
View User Profile
-
Send Message
Posted Dec 29, 2012Epic's Minecraft Language Filter has been updated and now I have created usable version numbers. I have listened to people and now the language filter is practical and seriously reduces the number of false positives.
Up until now, my language filter was only compatible with minecraft version 1.4.5, but now it's compatible with 1.4.6. Please note that in order to use my language filter version 7.0, you MUST use pwnfilter version 2.1.2 or greater. You can get my language filter here:
http://pastebin.com/u/EpicATrain
Please use the latest version for best results and check weekly for updates. Thanks guys and have fun!
-
View User Profile
-
Send Message
Posted Dec 29, 2012It's working fine now, not sure why, having good results.
-
View User Profile
-
Send Message
Posted Dec 29, 2012@EpicATrain It might not, like how replace/rewrite are, I may have to add functionality for that. But first try replacing §9 with &9 - I setup support for the ampersand but not the funky other symbol.
-
View User Profile
-
Send Message
Posted Dec 29, 2012@tremor77
does randrep not support colors?
-
View User Profile
-
Send Message
Posted Dec 29, 2012@Fexlom
Wow nice.. does it work for trolololololol?
-
View User Profile
-
Send Message
Posted Dec 29, 2012This will trim all repeats - single, double, triple, quadruple, pentuple - all
-
View User Profile
-
Send Message
Posted Dec 28, 2012@DreamPhreakAh yes that looks much better.. derp derp I wasn't thinking clearly.
-
View User Profile
-
Send Message
Posted Dec 28, 2012@FlashLight32Is it just your aliases that aren't working? If so, then give yourself the negative permission of -pwnfilter.bypass
I think what's happening is a slight adjustment in how I setup the permissions, when your OP you bypass the filter entirely and your aliases wont work in that case.
-
View User Profile
-
Send Message
Posted Dec 28, 2012Ok I tested all the ways lowest highest rollback to 1.9.3 (yes I deleted my config.yml to update)
1.9.3 work /reload 2.0.0 work /reload and since 2.1.0 nothing to work related to the chat so I think im not update anymore after 2.0.0 :P
so I don't change anything in my rules.txt http://pastie.org/private/uisulgsxcimgwnm0to5zkq thx in advance to your help :) and continue your good work guys
-
View User Profile
-
Send Message
Posted Dec 28, 2012@EpicATrain
match .*qwerty.*
Dont forget that + is 1 or more, and * is 0 or more.
-
View User Profile
-
Send Message
Posted Dec 28, 2012@tremor77
Interesting... Kinda works.
Here are the results of different tests:
something qwerty something = A whole new line.
qwerty something = qwerty something
something qwerty = something qwerty
So how would I do this if I want to detect any and all traces of qwerty and replace the entire line?
-
View User Profile
-
Send Message
Posted Dec 28, 2012-
View User Profile
-
Send Message
Posted Dec 28, 2012Hello tremor77, I don't know why but since the latest update nothing work :| match (?<!.)!op require user Flashlight32 then deny then console op &player then log
nothing nothing I deleted the config.yml to update him and now that not work like the plugin is off
-
View User Profile
-
Send Message
Posted Dec 28, 2012Is there a way to completely deny somebody's entire text, and then replace it with something we want them to say instead of it replacing the bad text in part of a sentence?
-
View User Profile
-
Send Message
Posted Dec 28, 2012@EpicATrain It's a typo! - I meant do not remove the quotes.
@matthiasvd2 Show me your plugin list and metrics comparisons before you make such an accusation. Chat runs asynchronously, this plugin shouldn't affect performance at all.. unless your server is a pile of crap to begin with.
-
View User Profile
-
Send Message
Posted Dec 28, 2012My server lags as hell when i use this plugin :(
-
View User Profile
-
Send Message
Posted Dec 28, 2012What does...
do not remote quotes around messages!
Mean?