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 May 23, 2013@itsatacoshop247 Anvil support for named items is coming out very soon. There are already dev builds of it.
@mrchasez I would have to recheck our discussion logs, but I believe that the whole colors thing in PwnFilter is going to be redone, or is on a to-do list to be focused on and fixed finally.
-
View User Profile
-
Send Message
Posted May 23, 2013Update:
The asycnplayerchatevent error only happens when i use 'then warn'
If there is no warn line, then i have absolutely no errors.
-
View User Profile
-
Send Message
Posted May 22, 2013@Sage905 @DreamPhreak
I don't know what happened, but colors stopped working. I have this: priority: highest and i have some replacements for words colored. They worked perfectly until a week ago, im not sure if we updated anything. Now the color only works for people with the permission to use color in chat (which wasn't required before, because the plugin had the highest priority).
So im dumbfounded on whats wrong here.
-
View User Profile
-
Send Message
Posted May 22, 2013Could you add a filter for named items? I've recently had people naming weapons 'my penis' or 'bitch killer' in PvP worlds, an addition to filter item names so they can't be dropped with vulgar names or used in PvP with vulgar names in the kill message would be awesome.
-
View User Profile
-
Send Message
Posted May 21, 2013@DreamPhreak
I upgraded to a dev build of cb and the asyncchatevent exception has seemed to stop.
-
View User Profile
-
Send Message
Posted May 20, 2013@MrREOM
PwnFilter already does that if you do it like this:
or
-
View User Profile
-
Send Message
Posted May 20, 2013Can you make it so we can make it to add a dictionary something like the cleanchat plugin were for some words like "Hell" it doesn't make it so you can say "Hello" so what the dictionary does is when you add the word hello to it, it allowes it so you can say the word hello and not count it as the word hell.
-
View User Profile
-
Send Message
Posted May 20, 2013@PhanaticD
Hrm.. You're the second person to report this error, but I just don't see how the code could be throwing this exception at this point.
I have attempted a fix for this in the 3.0 final release, which is awaiting approval. I think you should be able to DL it here: http://dev.bukkit.org/server-mods/pwnfilter/files/34-pwn-filter-3-0-0/
Please re-paste the error if it still occurs with the new version.
Thanks, Sage
-
View User Profile
-
Send Message
Posted May 20, 2013im seeing this error http://paste.thezomg.com/9463/13690753/
-
View User Profile
-
Send Message
Posted May 20, 2013@DreamPhreak
Ah... Those settings are for log level, not priority. I just updated the config and rules docs here, that should explain things better.
-Sage
-
View User Profile
-
Send Message
Posted May 20, 2013@Sage905 Interesting, I thought it got completely removed in 3.x and replaced with Fine or Info settings. Good to know.
-
View User Profile
-
Send Message
Posted May 20, 2013@IndigoParadox
@DreamPhreak
Dream, the options for priority setting are still there, but they are not documented in the default config.yml (other than to mention they exist).
My last remaining item before publishing 3.0 is to write docs... But that's not as fun as writing code. :) I will try to get it done today.
-Sage
-
View User Profile
-
Send Message
Posted May 20, 2013@YoFuzzy3
Yo
@CVision
2.4.2 and 3.0 are
@YoFuzzy3
The paste that yofuzzy posted indicates some sort of regex match loop. Unfortunately, I'm not working on the 2.4 branch right now. If I get some time, I might look into it in a couple days.
-
View User Profile
-
Send Message
Posted May 20, 2013@DreamPhreak
I don't see how Spigot would change the way regex works.
@CVision
I'll try that out and see if it continues, thanks.
-
View User Profile
-
Send Message
Posted May 20, 2013@YoFuzzy3
I had the same crash a week ago and i think problem is the commandfilter, so i set commandfilter to false in config. In the moment it works fine for me, no more crashes.
-
View User Profile
-
Send Message
Posted May 20, 2013@DreamPhreak
The plugin you suggested seems to work beautifully. Thanks again. I'll let you know of any more errors aside from the existing one. Sorry for the comment spam lol.
Edit: Spoke too soon, it still happens. particularly when a word is alongside capital letters or symbols. I have a spam plugin that handles caps so I will try disabling that. (Seriously starting to think it's GriefPrevention plugin causing this)
-
View User Profile
-
Send Message
Posted May 20, 2013@YoFuzzy3
Doesn't work with spigot at the moment, sorry.
-
View User Profile
-
Send Message
Posted May 20, 2013My servers keep crashing regularly because of this plugin. Not sure what would be causing it though as I'm confident I don't have any regex errors. Using Spigot #844 with PwnFilter v2.4.2. http://pastebin.com/5nRBZ2ht
-
View User Profile
-
Send Message
Posted May 20, 2013By the way, I am using default bukkit without an added plugin manager plugin. It's whatever bukkit is using.
-
View User Profile
-
Send Message
Posted May 20, 2013@DreamPhreak
Simply install that? Thanks for the response, by the way. I'll remove that line.
I appreciate your help. I will try this.