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 Feb 19, 2013Hey.
Awesome plugin i had a blast setting this up on my dev server :D
I do have a problem though :( .. on my dev server im running Ess Chat for testing, but on my real server im running ichat.
the replace part doesnt seem to work. logfile says it matched a "bad" word and sent "fudge" .. and the player gets the "watch your language" warning .. but it still shows the "bad" word in chat.
cheers sirmyllox
-
View User Profile
-
Send Message
Posted Feb 18, 2013@LaxWasHere I was actually pondering this, it's a big task for me with my time constraints but maybe i'll toy around with the idea.
@Europia79 For logging, should I make more configuration available? My concept was that with "then log" you could log only the stuff you really thought you needed so save space. You can turn off the logging to pwnfilter.log in config.yml and after than, "then log" just writes to console. I was also thinking about adding more to then log... like
then log console &player said &string - or then log file &player broke rule #6 and was muted
Also, thanks everyone for helping PwnFilter reach 10k downloads!
-
View User Profile
-
Send Message
Posted Feb 17, 2013/me wants MySQL backend for the rules.
-
View User Profile
-
Send Message
Posted Feb 17, 2013@EpicATrain
EpicATrain, it's another plugin that's causing the problem... i think i know which one... but imma mess around with it when people aren't playing on the server & test server.
-
View User Profile
-
Send Message
Posted Feb 17, 2013@Europia79
Thanks for your response. I'm so tired I can't think at the moment... I'll look for any bugs in that version that might cause your problem tomorrow.
-
View User Profile
-
Send Message
Posted Feb 17, 2013@tremor77
lol. thanks tremor77... i feel pretty stupid... i *assumed* it was pwnfilter... but now i think it might be Grief Prevention... i haven't fixed it yet... but i'm confident i'll figure it out eventually... At this point tho, i'm 100% sure it's NOT pwnfilter that is kicking people for spamming (which they're not really spamming).
EpicATrain, i don't want to do "/say"... but with your suggestion, i might add
so that it will be added to the server log... the "then log" just seems like a waste of hard drive space to me... It just takes a second to comment out or uncomment stuff if i need to ever investigate further. The version is &aVersion:§b 1.4.6-2.1.2-v7.4 1-4-2012 8:52 am
-
View User Profile
-
Send Message
Posted Feb 17, 2013@Europia79
What version are you using? Also, please don't edit out the then log statements, it's how you track to see what the language filter is doing.
-
View User Profile
-
Send Message
Posted Feb 17, 2013@Europia79 How about a plugins list? Could very well be for something else, as PwnFilter itself has no actual antispam feature, its just a chat filter.
-
View User Profile
-
Send Message
Posted Feb 16, 2013@EpicATrain
i'm using yours, but i modified it... all the
is commented out... Only some stuff actually has "then log"
EDIT: i just doubled checked your rules.txt... there's no "then kick" in it
-
View User Profile
-
Send Message
Posted Feb 16, 2013@Europia79
what rules.txt are you using?
-
View User Profile
-
Send Message
Posted Feb 16, 2013players are reporting being kicked by pwnfilter for spamming... but it doesn't appear like they're spamming... pwnfilter also doesn't leave a record in the console or server.log. And there's no "then kick" in the rules.txt
Can anyone helping me to turn kicking off ?
-
View User Profile
-
Send Message
Posted Feb 16, 2013@SirLinux OP's inherently have access to EVERY permission in the entire game. This is why 1, it's not recommended to even have OPs on your server, user a permissions plugin instead. And 2, some permissions plugins allow you to set negative permissions.. that is - remove a permission from someone who has all permissions already.. usually looks like this.. - "-permission.node"
-
View User Profile
-
Send Message
Posted Feb 15, 2013@austindkelly
Interesting... I guess
-
View User Profile
-
Send Message
Posted Feb 15, 2013I am a server owner, I recently got pranked in game (they filled my house with water), I decided to use PwnFilter to get back...
#burn
match [a-zA-Z0-9]
require permission pwn.burn
then burn my prankz r bettar n00b
-
View User Profile
-
Send Message
Posted Feb 15, 2013@deleted_9935739
Hello! I am currently working on this. I'm having beta testers test this out. it'll be ready soon.
-
View User Profile
-
Send Message
Posted Feb 15, 2013Is there any chance of creating a regex word filter generator? I'd like to have a huge list of words that also blocks out number/letter and s p a ced out variations but I'm quite confused on how to myself.
-
View User Profile
-
Send Message
Posted Feb 15, 2013Can the permissions apply to OPs? If so, I can seem to make it work. I thought the previous version was capable of doing that but perhpas I am mistaken.
-
View User Profile
-
Send Message
Posted Feb 13, 2013@Europia79 I'm all for free speech too but, ya I've had parents write to me both good and bad about the nature of chat on our server. On the other hand, also handy to stop advertising, all CAPS chat. And something I am starting to use more is the command aliasing and console chaining. Very handy for say granting a vip rank.. like !vip name does permission name vip, give x money name, give kit name.. any instance where you could tie a couple commands together
@nejcneoThis is probably the most request thing and I haven't done it yet.. what I'm wondering about however is if this is pwnfilter or if this is a separate plugin.. right now PF is so tailored to just chat.. it would need a bit of a core overhaul to add a command listener appropriately. Plus honestly i think a command listener might be something you'd want a separate rules file for..
-
View User Profile
-
Send Message
Posted Feb 13, 2013@DreamPhreak
lol cool man
-
View User Profile
-
Send Message
Posted Feb 13, 2013@Europia79
Heh. Yeah, on my/tremor's server, we know that there are a bunch of kids younger than 13 that play, and we've also heard that sometimes parents sit with the kids while they play. So, If the parents see that the server is mostly family-friendly, maybe they would continue to let their kids be regular players.
If children didnt make up the majority of players, I would bother tremor to just let everyone swear all day long and turn it into a mature server. :p