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 Jun 10, 2013@PhanaticD
3.1.0-rc1 is pending approval. You can download a totally -unsupported- and NON-bukkit approved image on my repo/ci server: http://ci.toal.ca/repo/com/pwn9/PwnFilter/PwnFilter/3.1.0-rc1/
Can you give me an example of your rules.txt statement, and what the expected output is?
Thanks, Sage
-
View User Profile
-
Send Message
Posted Jun 10, 2013@Sage905
Im having the same issue where people are able to use color, with the anti-caps filter that is given if they type &kHI THIS TEXT IS CRAZY it will do those random characters despite anti-color and all. The filter worked fine previously so something must have changed
where is the download link for 3.1 rc1?
-
View User Profile
-
Send Message
Posted Jun 10, 2013@CaznowlSMP
If you give staff the "pwnfilter.color" permission, it will allow them to use colors, even if decolor: true.
Maybe I need to add a "then decolor" action to the available options. Would that be better?
-Sage
-
View User Profile
-
Send Message
Posted Jun 10, 2013@Sage905
My problem is I have staff chat in colours and because of the plugin fancttext players can type &4 etc in their message to make their chat coloured. I used to be able to block it with a pwnfilter rule.
I have pwnfilter set to highest. But it doesn't block it anymore.
I use chatmanager. I am asuming decolor: true will stop my staff from having coloured chat?
-
View User Profile
-
Send Message
Posted Jun 10, 2013@K33PY
I think maybe something like booscooldowns would be the way to achieve this goal.
-Sage
-
View User Profile
-
Send Message
Posted Jun 10, 2013@PhanaticD
This issue is (I hope) fixed in the 3.1.0-rc1 release. Please give it a try and let me know?
-Sage
-
View User Profile
-
Send Message
Posted Jun 10, 2013@cuddyier
Specify: match blah events not sign
To exclude signs from that rule
-
View User Profile
-
Send Message
Posted Jun 10, 2013@CaznowlSMP
Hi there. Sorry for the delayed response. Can you be more specific about the issue?
PwnFilter no longer strips colors by default. You can globally disable colors with the decolor: true option in the config.yml.
If you want to disable all colors in chat only, there's no way to do that by default. It's probably better to do that in the plugin that enables chat colors (EssentialsChat?)
If you want a particular rule to strip color from the message, you can use "then replace". "then rewrite" will preserve colors in the string.
-Sage
-
View User Profile
-
Send Message
Posted Jun 8, 2013@Sage905
looking forward to it, it seems every time I do "then console" it doesnt ban/mute advertisers
-
View User Profile
-
Send Message
Posted Jun 8, 2013Has anyone got the regex to block players from changing chat colours to work? It used to work for me but now doesn't. I have set pwn filter to highest. I use a plugin called fancytext to allow players to make coloured signs but it allows them to change chat colour. Pwnfilter used to block this but now doesn't.
-
View User Profile
-
Send Message
Posted Jun 7, 2013@PhanaticD
Hey folks,
Sorry for the delay. Things have been too busy lately. :(
I'm working to rewrite PwnFilter to make it API threadsafe. It's actually a fair bit of work, because there's a whole bunch of stuff we have to cache since we can't call it safely from the async handlers.
I -might- have a release for testing today, but honestly, it's probably going to be Monday.
-
View User Profile
-
Send Message
Posted Jun 6, 2013How can I ignore a rule on a sign? Such as blocking domain names or IPs?
-
View User Profile
-
Send Message
Posted Jun 5, 2013@PhanaticD
I can second this, it's quite an issue on my server :P
-
View User Profile
-
Send Message
Posted Jun 5, 2013error with pwnfilter http://pastebin.com/CtCAxWRi
-
View User Profile
-
Send Message
Posted Jun 5, 2013people are able to use color in the caps filter
-
View User Profile
-
Send Message
Posted Jun 2, 2013Hey, uhh, I don't want to be rude or overly demanding, but is there any chance you guys could update your source code? It's quite a bit behind and I don't want to decompile just to add one or two extra actions. I'd also be happy to share what I end up with with you as a pull request.
I think you guys are super close to making something that's not only a chat filter, but also a fully regex-based chat bot that can answer common questions and make idle chatter with the server population.
-
View User Profile
-
Send Message
Posted Jun 1, 2013it seems like this might have a compat problem with AntiAd. Pwnfilter works but AntiAd is broken. both plugins are updated.
-
View User Profile
-
Send Message
Posted May 30, 2013And another request, can you add including function to rules.txt? I would like to split to categories (rules_fun.txt, rules_system.txt, rules_commands.txt etc). I think it shouldn't be hard and it helps a lot! :)
-
View User Profile
-
Send Message
Posted May 30, 2013Ok, thanks for the reply for the other question but I have another one. Is it possible to stop people from repeatedly renaming their faction cause this can cause a lot of spam and so far, I haven't found a way to stop it. Unless I'm completely blind and there's a setting in the Factions config.
-
View User Profile
-
Send Message
Posted May 30, 2013Is possible to add configurable spam setting?
I don't want to have double check of command and message, but tripple (4, 5...)
I'm using mcmmo. If I'm switched to party chat and by mistake send message there I can't send it to global chat.