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
I'm using the latest version of 1.8 Spigot (1.8.5), and now I get a ton of issues with PwnFilter. When I attempt to reload the plugin via "/pfreload," I get the following error, http://hastebin.com/amolaxoyay.sm.
From there, nothing is actually reloaded and the plugin doesn't work period. Any idea why?
This plugin is amazing, thank you so much! One question. On the repeat filter, I'd like it to limit the characters down to 3, not 2. In this example:
It replaces aaaaaaa to aa or ....... to .. My biggest problem is you can't type ... How can I make it so it replaces to 3 letters rather than just 2? Thanks!!
No comparison - THE best filter plugin. I am experiencing some crashes lately. I don't know if it is because of PwnFilter, but the very last thing that happens before the crash, every time, is a MATCH on the plugin.
I would really anjoy a 1.8 update.
It would be great if someone can add a way for the configs to sync across multiple servers so when i edit one config, all of the other configs will update to it.
I am very, very surprised that this plugin does not have more downloads. This is by far the most advanced filter plugin I have seen.
Liger_XT5 I have used it.... Look.. http://pastebin.com/Vze0rGHh
@Cjorange
If you would have referred to the ones I used, you'd be good to go. Rarely any false positives.
Ignore thT, I hVe used that and that's the one that I have been using. And people can still advertise number ips
I need a way it can only block number ips
@Cjorange
I highly suggest learning a little bit about Regular Expressions (regex).
Here's a useful site that lets you test regex code and gives you a cheatsheet sidebar that tells you what certain things do: http://regexr.com/
Here's some basics for you:
Putting some of that together:
Simple IP filter
\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
Matches stuff like 1.2.3.4 or 255.255.255.255 or 10.73.127.8
Slightly better filter
\d{1,3}\s?.\s?\d{1,3}\s?.\s?\d{1,3}\s?.\s?\d{1,3}
This one is like the last one, but it will see the IP even if there's spaces in-between or something other than a period is used
The regex filters above can each be majorly improved to give more accurate detection abilities. Some way or another, it's usually possible to bypass a filter. It all depends on how well the filter is coded. If something is overlooked while coding, you might even start catching a lot of false-positives (meaning the filter catches something but it isn't what you wanted to catch).
False-Positive examples:
Both filters above will detect impossible IPs like 432.99.328.773
The slightly improved filter above will match if someone says 5, 4, 3, 2, 1 Go! all in one message
I need a way it can only block number ips
Does that work for numbers?
@Cjorange
Example 1 (just stop it, replace with a public sentence, and send the player a message)
Example 2 (replace it with some predefine text, but allow certain URLs, or IPs)
PS .. it becomes truncated when I press "post", but you can put in ENTER where you see it's appropriate. See how it looks in the editor here: http://i.imgur.com/N9wMBbC.png
okay. I got the letter URLS blocked now I just cant get the number IPS to be blocked.
I want them not to be able to advertise. I want it to replace the advertising with gtg then it will kick them
How do I do that!?
I looked in the sample ones but I actually want to block all addresses. So do I just type in random letters to block? That doesn't sound right.
I didn't know it posted twice. And u shouldn't be this bothered by it. Please leave that alone. And I know how to configure other plugins but I don't know how to do this kinda suptuff as u obviously can see...
@Cjorange
Your post was hours in between.
You could also delete one of the posts when you realized it was on there twice.
If you are confused on pwnfilter's rules config, how are you able to understand other configs of other plugins? Just use the examples shown in the samples and replace the first line, the line that says MATCH at the beginning with the codes I gave you. Then after the MATCH lines, add in what you want Pwnfilter to do with the results when found.
I didn't try to spam.. The stupid comment button is broke for me. And I am still confused. I a, giving up on this. I am going with command helper to make bots.
@Cjorange
@Cjorange
No need to spam.
The following is the "match" lines that I use. You will need to add the following lines, such as "then deny" or "then replace StringOfTextHere" after, similar to your other filters.