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 20, 2013That wouldn't work, you are using 3.0.0-rc3, and that "Chat Filter Priority Configuration" was removed from this version, simply adding it back to the config wouldn't fix it.
Also, I noticed in the error it says you are using SimplePluginManager, for MC 1.2.4, before AsyncPlayerChat existed. Try switching to a more recent one: http://dev.bukkit.org/server-mods/pm-pluginmanager/
And I will let tremor or sage know about this problem when either one gets online in a few hours.
-
View User Profile
-
Send Message
Posted May 20, 2013@CVision
Okay same error, here is my config http://pastebin.com/G4UWnwEA
lol Am I doing it right?
If so, I suppose I can try disabling other handlers.
-
View User Profile
-
Send Message
Posted May 20, 2013@CVision
Excellent, thanks for the suggestion. I will try this out. Is there any way to reload config.yml? I think /pfreload only reloads rules.txt.
By the way, the # Chat Filter Priority Configuration line didn't exist in my config. So I created it.
-
View User Profile
-
Send Message
Posted May 20, 2013@IndigoParadox I think the problem is too low priority. Set priority in config.yml to a higher value.
-
View User Profile
-
Send Message
Posted May 19, 2013Please take a look at this.
http://pastebin.com/cYiyKCfm
Grief prevention spam protect, Essentials Chat.
-
View User Profile
-
Send Message
Posted May 19, 2013Could you add some or all of the features from this plugin: http://dev.bukkit.org/server-mods/chatlimiter/ to this?I understand if it leaves the purpose of this plugin, but that would be awesome! :)
-
View User Profile
-
Send Message
Posted May 19, 2013@awesomestmason
Parenthesis are a regex rule, use backslash to escape it so it reads it as a regular character, like :\)
-
View User Profile
-
Send Message
Posted May 19, 2013It seems to not read parenthesis? I am trying to make it so if somebody types :) it turns into a smiley face. This is what I have;
match :) then replace ☺ then log
How can I make this work?
-
View User Profile
-
Send Message
Posted May 19, 2013@EncryptedCurse That is planned for the near future, and is on sage905's to-do list.
@MrREOM This plugin is a base plugin that ALLOWS you to do anything you want with it. It doesn't COME with built-in anti-advertising, you add it yourself by adding the RegEx code to the rules.txt. Check out the sample regex rules page: http://dev.bukkit.org/server-mods/pwnfilter/pages/sample-regex-rules/
Or more simply:
(Which is why this plugin is so great, it is only as weak or as strong depending on how much time you put into it. With RegEx, there are a hundred ways to do anything. I've tried other plugins where you have to manually add each swear word into a command like "/cmd block Swear", and then still had to think and add every single variation to the list. With RegEx, it finds every single last variation for you, so long as you tell it what to look for; "swear" by itself would only specifically match "swear", but if you added like "sw(e|3)?(a|4)?r" it would find "swear, sw3ar, swe4r, sw34r" on it's own without you having to think about those 3 extra words, or even more with repeat characters or spaces. Now think about this with advertising, there are 21,336,063 .com websites alone, you cant possibly block that many websites for anti-advertising at all, unless you used regex to find _.com, but replace the blank with \w (letter) and \d (digit), since irl you are only allowed to have letters, numbers, and hyphens in your domain, you could do "(\w|\d|-)*\.(com|net|org)" which, while basic, would already knock out a huge chunk of .com, .net, and .org websites. )
-
View User Profile
-
Send Message
Posted May 19, 2013Does the plugin come with AntiAdvertising?
-
View User Profile
-
Send Message
Posted May 19, 2013I have an idea: Filter item names renamed through anvils.
-
View User Profile
-
Send Message
Posted May 17, 2013@Sage905
It most certainly will work. Thanks a bunch. =)
-
View User Profile
-
Send Message
Posted May 17, 2013@rtcabooservb
I've modified the configuration options a bit. Will this meet your needs? https://www.dropbox.com/s/g8p9hvvqr9lccnv/PwnFilter.jar?v=1rc-s
-
View User Profile
-
Send Message
Posted May 16, 2013@Sage905
Think you could add a config option to not output SEND, MATCH, or any other pwnfilter options to console?
-
View User Profile
-
Send Message
Posted May 16, 2013@rtcabooservb
Cool, thanks for the feedback!
There's one more bug I just noticed with respect to logging. the SENT log entry shows the original string, not the changes. That will also be fixed in RC3 later today.
-Sage
-
View User Profile
-
Send Message
Posted May 16, 2013@Sage905
Seems to be working great. No errors on shutdown and no console spam with [SENT].
-
View User Profile
-
Send Message
Posted May 16, 2013@rtcabooservb
Give this a try: https://www.dropbox.com/s/g8p9hvvqr9lccnv/PwnFilter.jar
If it works for you, it will become RC3. :)
-
View User Profile
-
Send Message
Posted May 16, 2013@Sage905
Hello Sage.
I have been using RC2, hence the two issues I have reported. If there is a development build of RC3 when it is ready, I'm eager to test. =) Just looking for the shutdown error to be fixed and the "SENT" console spam to be removed.
-
View User Profile
-
Send Message
Posted May 16, 2013@rtcabooservb
Hi rtcabooservb:
PwnFilter 3.0 is mostly my mess. :) RC1 has some issues in it that I've been fixing today. I uploaded RC2 (it's awaiting approval), but that won't fix the issues you reported below, so I'm going to upload an RC3 later today. I just want to make sure I have all known issues resolved before I submit it, because I want it to be the last one (if possible) before a 3.0 release. :)
-Sage
-
View User Profile
-
Send Message
Posted May 16, 2013@tremor77 Using 3.0.0-rc2.
Also, do you know why [PwnFilter] SENT is parsing a line for every time someone issues a command or chats in console? This is duplicating the server.log file for everything that occurs.