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 25, 2012@tremor77
Ok, seems to be something with our rules.txt
Using the default one works fine but using ours it does not. (nothing has changed from the rules.txt though so not sure why its not working now.)
If you like i can send you our rules?
Thanks
-
View User Profile
-
Send Message
Posted Dec 25, 2012<<reply 1145 I've tried setting priority to highest still same issue of it not changing what appears in chat. I've also updated essentials to: Essentials version Dev2.9.706 to see if that helped.
We don't have any of the plugins you mentioned but we use factions (clan like plugin)
Hope this helps some what.
Ill try it on a test server, putting our plugins in one by one to try and find and replicate the issue.
-
View User Profile
-
Send Message
Posted Dec 24, 2012@externo6 @EpicATrain I Haven't been able to replicate these problems so far. I'll keep trying. Do you have any other plugins like clans, channel chat, prefixes? Have you tried changing the priority settings in the config.yml?
-
View User Profile
-
Send Message
Posted Dec 24, 2012My apologies... by not working I mean...
I coded ..test to replace the text with
moo.In 1.4.6, when I type ..test it gives a message that it blocked my text but people still see the ..test. I have it coded so that ..test is replaced with
moo-
View User Profile
-
Send Message
Posted Dec 24, 2012@tremor77
Sorry should have given more info, I've updated to your new 2.1.1 version. See extracts of commands bellow,
CB Version: [INFO] This server is running CraftBukkit version git-Bukkit-1.4.6-R0.1-7-g64fb12a-b2565jnks (MC: 1.4.6) (Implementing API version 1.4.6-R0.2-SNAPSHOT)
Essentials Version: 18:55:37 [INFO] Essentials version 2.9.6 18:55:37 [INFO] Provides an essential, core set of commands for Bukkit. 18:55:37 [INFO] Website: http://tiny.cc/EssentialsCommands 18:55:37 [INFO] Authors: Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits, md_5 and Iaccidentally 18:55:37 [INFO] EssentialsChat version 2.9.6 18:55:37 [INFO] Provides chat control features for Essentials. Requires Permissions. 18:55:37 [INFO] Website: http://tiny.cc/EssentialsCommands 18:55:37 [INFO] Authors: Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology, KHobbits, md_5, Okamosy and Iaccidentally
Extract of what happens in console:
18:52:37 [INFO] [PwnFilter] Player> shit 18:52:37 [INFO] [PwnFilter] sending console command: burn Player 3 18:52:37 [INFO] You set [elite]playerl on fire for 3 seconds. 18:52:37 [INFO] [C]CharChu B Fa [elite]Player: shit
Here is what is in the rules.txt for the word *shit* match \b(s+(\W|\d|_)*h+(\W|\d|_)*(y|i|1||)+(\W|\d|_)*t+(\W|\d|_)*) then console burn &player 3 then replace *beep* then warn The filter has blocked a bad word (42) then log
Thanks
-
View User Profile
-
Send Message
Posted Dec 24, 2012@EpicATrain Try deleting your /PwnFilter/config.yml and reloading.
@externo6 ^ do that.
Also, "Not working" doesn't do me a load of good... are their any errors or any other descriptive issue that you can provide? Also note this - R: PwnFilter v2.1.0 for CB 1.4.5-R1.0 Dec 20, 2012 <- I have not release a PwnFilter for 1.4.6 yet.
Also ^ - working fine for me. Whats your version of Essentials?
I just uploaded a version 2.1.1 based on the latest release of Bukkit, just in case. See if this helps. http:dev.bukkit.org/server-mods/pwnfilter/files/16-pwn-filter-v2-1-1/
-
View User Profile
-
Send Message
Posted Dec 24, 2012Seems to have stopped working on 1.4.6, using essentials chat and pwnfilter v 2.1.0
Was working fine.
Thanks
-
View User Profile
-
Send Message
Posted Dec 23, 2012My server just upgraded to 1.4.6 and pwnfilter isn't working (haven't updated to 2.x yet). Will upgrading to 2.x make it work again?
-
View User Profile
-
Send Message
Posted Dec 23, 2012@tremor77
Cool! I have been messing around in rules.txt lately and its amazing how much can be done with this plugin!
-
View User Profile
-
Send Message
Posted Dec 23, 2012@Uberorb Thanks for pointing this out, you're right. The only other thing to do is not use bypass at all, and add an (ignore permission) on various rules.. you create any arbitrary permission you want, for example:
However this could be tedious for large rule sets.. I'll think about some ways to clean this up some more!
-
View User Profile
-
Send Message
Posted Dec 23, 2012So, quick question... Is there a way to bypass chat filters (like pwnfilter.bypass) but still be able to run .commands? Right now the only two choices I see are abide by the filter and be able to use aliases or use pwnfilter.bypass and not be able to use .commands
-
View User Profile
-
Send Message
Posted Dec 22, 2012@Mjclone Interesting, I can't remember when they introduced the new async chat stuff.. i'm sure if you went any older than 1.2.5 it would start breaking. Glad you like the plugin!
-
View User Profile
-
Send Message
Posted Dec 21, 2012Im not trying to be a jerk here but my friend got your 2.1.0 version to work with 1.2.5 again and it is BA love the work thank you!
-
View User Profile
-
Send Message
Posted Dec 19, 2012@EpicATrain This is something I've been trying to get working - it's on my to-do list. If I cannot make it a configurable setting I can just compile a special version with a different priority setting, although yes, this would really make PwnFilter better and more compatible with other chat plugins. I'll make priority - my next priority.
-
View User Profile
-
Send Message
Posted Dec 18, 2012I'm sorry I might not have communicated properly. A server I'm on is requesting that the plugin's priority be a configurable setting.
-
View User Profile
-
Send Message
Posted Dec 18, 2012@PCM_Tazmaik
Here's the direct link for 2.0.0 wile it's pending approval: PwnFilter v2.0.0
-
View User Profile
-
Send Message
Posted Dec 18, 2012@DreamPhreak
So I'm really excited :)
-
View User Profile
-
Send Message
Posted Dec 18, 2012@PCM_Tazmaik
Oh yeah, forgot we are still waiting for it to get approved.
-
View User Profile
-
Send Message
Posted Dec 18, 2012@tremor77
Awesome - thanks. This plugin is great!
-
View User Profile
-
Send Message
Posted Dec 18, 2012@DreamPhreak
But not work ! It's say: For 2.0 ..