ToggleFilter
Are you like me? Do you like to be able to swear a bit while playing Minecraft? If you do, then you probably get annoyed with all your swear words being filtered. However, servers have to have a chat filter because if they don't, a lot of people complain how the conversations are "inappropriate" and "offensive". You can't argue with these people either, because they want to have a nice friendly conversation, not one full of cursing.
The thing is, none of the major chat-plugins seems to accomodate for both of these mindsets. That's where ToggleFilter comes in. We've created a plugin which allows for each individual player to decide whether they want what they see to be filtered. The people who choose to have the filter enabled will rude words filtered out and replaced with different, less offensive words. On the other hand, if people choose to have the filter disabled, they will see the chat with the message sent as it was originally intended to be read.
The words to filter are completely customisable by the server's staff, as are the replacement-words. This can be done with either: the commands (listed below), or through the config.yml. Please note: to alter the data by using the config.yml, you will need to completely stop the server. The server administrators can also decide whether or not they want the filter to be enabled by default or not.
This plugin has complete UUID support!
Learn more about UUID here: https://forums.bukkit.org/threads/psa-the-switch-to-uuids-potential-plugin-server-breakage.250915/
Commands
- /filter - Lists all the commands available to the player
- /filter on [player] - Enable the chat filter
- /filter off [player] - Disable the chat filter
- /filter check [player] - Check if the filter is on
- /filter add filter <word> - Add a new word to be filtered
- /filter remove filter <word> - Stop a word being filtered
- /filter add replace<word> - Add a new word to act as a replacement word
- /filter remove replace <word> - Stop a word being used as a rem
Please note, you can use "/filt" instead of "/filter"
Permissions
- togglefilter.on.self - Permission for the use of /filter on, but only for the player using it
- togglefilter.on.other - Permission for the use of /filter on, but only to specify another player and enable it for them
- togglefilter.off.self - Permission for the use of /filter off, but only for the player using it
- togglefilter.off.other - Permission for the use of /filter off, but only to specify another player and disable it for them
- togglefilter.check.self - Permission for the use of /filter check, but only for the player using it
- togglefilter.check.other - Permission for the use of /filter check, but only to specify another player and check their status
- togglefilter.add.filterword - Permission to add a new word to be filtered
- togglefilter.remove.filterword - Permission to stop a word being filtered
- togglefilter.add.replaceword - Permission to add a new replacement-word
- togglefilter.remove.replaceword - Permission to stop a word being used as a replacement-word
If you should happen to find any bugs or if you have any suggestions, please leave a comment below!
Thank you!
Does not work well on 1.12
Problem with /filter add replace<word>
Would love to see this plugin updated to 1.10 with added ways to disable bypassing the filter.
Can you make this plugin compatible with HeroChat?
@Kyle54106
I may have to soon, although it turns out that I was wrong about the uploading thing, so I've been able to put it up for you.
@will181
I suggest that you move your project to spongepowered.org :)
@Kyle54106
You may have to alter it within the config. I believe that I have found a way to deal with it, but to my knowledge Bukkit is not accepting uploads, so I can not upload the patch.
@will181
After putting a space it says that the word is already filtered
@Kyle54106
I'll have a think about how to sort that. Until I get round to it,try putting a space after ass in the config (might need to surround it with speech/quote marks)
Edit
You shouldn't need to surround with speech marks, just leave the space after it.
@will181
I found out the problem, it was with HeroChat. But I found a huge problem, some words that are blocked have an effect on words that are not blocked. For example I have ass blocked as a word, and when someone says a word like assassin, it blocks that. That's something that needs to be fixed.
@Kyle54106
Can you please provide an example of what happens when both plugins are enabled?
Can you make this plugin compatible with HeroChat? When this plugin is enabled, it prevents herochat from working properly.
@andrivard4
Alright~
I'll just wait out until the fix comes out, I'm in no rush, thanks!
@Sara1399x3
We seemed to find the problem, our plugin was having conflicts with ProtocolLib, Will is currently working on a fix, but what you can do for now is remove ProtocolLib (If no plugins depend on it) and then reload your server, that should fix it up.
Note: If some of your plugins do rely on ProtocolLib, do not remove it and just wait for a fix to come out!
Hope this helped: Andrivard4
@Sara1399x3
Sorry for spamming you. I just remembered that I did add a workaround for a server that was experiencing these issues before. Please try using "/filt" instead of "/filter", and the issue should be solved!
@Sara1399x3
Okay, I tested it on my test server, and it seems to work fine. However, on another server that uses it, I do see these issues.
Could you please send me a list of your plugins?
@Sara1399x3
Looking in to it now. Will get back to you when I figure it out
Hi ^.^
I'm having a problem with this particular plugin on my server. I have the words set in the config, and I did as you suggested and shut it down completely. Whenever I try and turn the filter on/off it says
"Insufficient commands. You need at least 2" Then I go to do
"/filter add 'example word' But then it goes "Debug mode must be enabled in the configuration first!"
There is no 'debug mode' in my config of this plugin to enabled?? Help?
@ZeriyaGaming=
Patch has been uploaded. No guarantees as to when Bukkit will approve it.
@will181
No worries, patience is key. Considering that this is the only plugin that does what i was looking for, I think I'll be willing to wait.
@ZeriyaGaming
Sorry about that; an oversight on my part. I am working on a patch now which shouldn't take too long.