Swear Filter
Swear Filter
What is the Plugin?
This plugin is a basic swear filter which can be setup and running in minutes. This plugin allows server admins to block certain words from chat no-matter if they are in capital letters or even hidden within special characters. You can easily add to the list of words in-game through a command or through the configuration file. Another added feature is the ability to send a personalised message automatically when someone swears.
When a word that is on the list of banned words is detected it is automatically stared out. For example, When a player says "This is really dope" and the word "dope" is on your list of banned word the chat message will actually be "This is really *".
Features
- Filter certain words from player chat
- Stop players being able to use capital letters or special characters to hide your filtered words
- Allow your staff to dynamically add words to the swear list and manually reload the config file
- Send personalised messages to the affected player
Commands
All of the commands in the game are under the /sf command.
/sf add <word> - Allows you to add a word to the list in-game
/sf reload - This command allows you to reload the list of words from the config file if changed out of game
Permissions
There is only 1 permission node which is for the /sf command, this will allow the group to use all /sf command including add and reload:
sf.use
Configuration
This is what the configuration file looks like:
WarningMessage: Hey [Player], Please don't swear Words: - put - words - here
The WarningMessage is the message that will be sent to the player when they use words that you have filtered. The word [Player] can be used to insert the players name into the message that is sent. If you set the value of WarningMessage to "none" (without speech marks) then a message wont be sent to the player.
Under Words, you can insert words manually into the config. You can also use the /sf add <word> command to add a word to the list in-game.
Donations
If you feel that you have benefited from this plugin then please consider donating. This helps me to fund further Minecraft related plugins and game modes. To donate you can either click the link above that says Donate or the PayPall button bellow. Thanks
Rubbish plugin
Nice filter but this is very easy to bypass, you can just add a period and it comes through! I would suggest making the word not have to stand on it's own, it can have things around it
this plugin randomly deleted the words i blocked its so annoying.
There is bug with "/sf reload" if you do it it won't reload plugin. It say that it's reloaded but it won't reload it (because i try some words that i add and they weren't censored) then i restart my server and try same words and they were censored. But it works nice on 1.7.9
@TylerS1066
U don't need UUID here since this only prevent swearing. This isn't like warning plugin.
Is this plugin 1.8 UUID ready?
2013-09-09 14:30:46 [SEVERE] Could not pass event AsyncPlayerChatEvent to SwearFilter v1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:877) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:829) at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49) at net.minecraft.server.v1_6_R2.NetworkManager.i(NetworkManager.java:213) at net.minecraft.server.v1_6_R2.NetworkManager.c(NetworkManager.java:351) at net.minecraft.server.v1_6_R2.NetworkReaderThread.run(SourceFile:94) Caused by: java.lang.ArrayIndexOutOfBoundsException
in the control panel you see the * can you please add something like this for the control panel:
Also, any other character at the beginning/end of the word results in it not being filtered, this is a little too easy to bypass for my liking.
I found a problem. I added "test" to the filter as a test, and then said "test" in chat. It was filtered. But if I said "test?" then it didn't filter the message. Could this be fixed please?
Is it possible for admins to still swear or will they be filtered too?
Do I have to wait a while after I add a word to make that word banned? Do I have to restart server? It didn't work for me right after I added the word.
@63854
It has about 3 words for testing purposes but then you have to add the words yourself. When I next update I will include a list of words
Does this have a pre-loaded list of banned words?
@zaxome
Thanks for downloading. I will be releasing updates soon including a caps detector and ability to find words segregated by spaces!
First downloader :) I'm gonna test it now. If it works, I'm keeping it on my server.