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
So then what's the "code" to block URLs and ip adresses. Like number ip adresses too.
So then what's the "code" to block URLs and ip adresses. Like number ip adresses too.
@Cjorange
the file your looking for is not the config file, it's your filter files, mine are in rules/english folders. If you don't have rules then you will need to find them. they don't come with pwnfilter.
@Cjorange
At the very first of the first line of every filter you have, it says "match".
If you can't find that, then you don't understand the filters you sent me via pastebin. I'm not going to do the simple work for you. These filters, exception of coding the regex part, is very simple.
Hint: Every empty between lines makes the next line seen as a new filter. A filter begins with "match" followed by the regex code to use to search through each chat/command/sign/book/etc.
If you need help with these, please click SAMPLES at the top of this page. The explanations are very helpful.
@EpicATrain @tremor77
The samples page is using the old &player and related variables. Didn't these get replaced?
I don't see where it says that. Can u send a paste in? Or something
Copy One Of The Filters. Only One. That's It. Paste it at bottom. Edit the first like that says Match to replace the info after Match with your advertising filter. Done.
Where in the config!? And what do I replace it with!??
@Cjorange
Copy one of your filters. Edit the line that says match to place your filter. Done.
So where do I go?! I hear this plugin helps ALOT but all I need now is advertising to be off... I am sorry I am nothe best when it comes to configuring.
@Cjorange
Wow, hate to be blunt when helping with plugins, but you might want to compare with the other filters and repeat what they have.
match RegexHereAsYouHaveit (Someone correct me on this, regex is not my best).
then deny
then warn Don't Advertise URLs/Links/Ips Here.
if I want to block advertisers like website URLS and stantdard groups of numbers how do I do that??? I see using this code @^(http\:\/\/|https\:\/\/)?([a-z0-9][a-z0-9\-]*\.)+[a-z0-9][a-z0-9\-]*$@I But put it where!?
IP: 192.99.150.104:25571
@Cjorange
Other than the Regex part, the rest of the layout is quite easy. Under each Match, just add a line for ignore. Example:
match (Regex Here)
ignore bass
ignore sluth
then deny
then warn Please don't cuss.
I don't get this stuff. But I heard that this is the best way of having player not swear or advertise and stuff like that....
Here is my chat.txt folder. Please edit it so people can't swear, advertise, spam. http://pastebin.com/nRfSRVUT That's my paste bin for it. But I want people to not say ass but I want them to be able to say glass, a, assassin, and so on... Thanks for doing this!
@Cjorange
If you have a filter that takes out ass, yet you want them to be able to say bass, do as the examples shown.
After the line with the regex for ass,
ignore string bass
replace (Either leave blank or have ass replaced with what ever you want)
warn Please don't say ass. This is a mature server for children.
You can use the old filters that EpicATrain made, but you'll have update them to use the new variables. He's making a new set that isn't as complex, but he's been very busy last I knew. You can find his alpha/beta filters on the forum here.
And iPyronic I am using the latest version.
Okay I have waited along time can anyone help fix my own filter so people can't swear but they actually can say like a bass idea and stuff like that!? I also don't want players to advertise, spam, or use a ton of caps! Please someone help! Sage said he was busy for a week... But he never answeres my messages! :(
@ridddle
PwnFilter has a simple anti-spam feature for preventing the same exact message or command from being said twice in a row. It can be turned on in the config by setting "spamfilter" to true for chat and "commandspamfilter" to true for commands. It's quite easy for anyone to bypass by simply adding a letter to the end of the message after pressing up, so don't expect it to work wonders. Still, it does provide some protection against spam and is adequate in slowing down the up-enter-up-enter-up-enter process~
If people are usually spamming something that is setting off a filter as well, you can have that filter use the Points system so that if they trigger it too much, a more severe punishment is applied separately from whatever the individual filter rule does.
As for doing more than that or being more precise, I believe the authors stated in the past that it would be better to get a different plugin that is more focused on preventing multi-line spam. (Hope I'm not remembering incorrectly D:)
Is there any way to react to the same message sent one after another? Like, if player is spamming the same stuff just by pressing arrow up key.
@Cjorange
It's difficult for anyone to help you if you don't provide more details (such as which PwnFilter version you're running and what your settings are).
I need help.. It won't let people say a and tpa