SwearSlapper
Due to college and being extremely busy I am handing ownership of this project to killjoy64; should he decline then it is free to anyone who wants to take over the project and continue development - PWicks23
SwearSlapper
Tired of people coming on your server and disrespecting the rules by swearing and being rude to players? Have rules on no swearing, yet occasionally players do, and not sure how to punish them? Then this is the plugin for you.
This plugin will detect swear words in the chat events. If it finds a word that is blacklisted it will cancel the chat event so no one sees the nasty message. What more, it also slaps the player and warns them with a message! People with the SwearSlapper.notify node can see these swear attempts with a simple, clean and not-spammy message saying "(playername) attempted to swear!" in dark gray. You can also edit the config so they can see what it was the player attempted to say! I have done a lot of testing with this message to make it as least interrupting as possible, although still visible for your staff to notice. You can also choose who the plugin ignores with the SwearSlapper.canswear node, so with this given to any mods or other staff they can still swear (Implemented mainly so staff can still swear in staff channels, this node is really subject to your creativity).
SwearSlapper Version 2.0.0 is released!!
Thanks to the major help of killjoy64, another admin and coder of the Fantasia server, the release of SwearSlapper 2.0.0 is finally here! This update is a huge leap forward and I am very excited to announce it! With this update you can now add, remove, check and get a list of all the blacklisted words from in-game, console, or straight from the BlackListedWords.txt file! This allows a complete control over what people can and can't say on your server, you can either use the predefined starter list of words included in the ZIP, or you can create your very own blacklist from scratch. The in-depth help.txt file will guide you through how to set this all up.
Default message for players trying to swear:
Default message sent to players with SwearSlapper.notify permission:
Permission nodes:
- SwearSlapper.* - Contains all permissions!
- Swearslapper.admin - All the /ss commands.
- SwearSlapper.caps - Manually slap people for excessive caps!
- SwearSlapper.language - Manually slap for bad language. Slap with this then type the command to add the word that got through!
- SwearSlapper.canswear - People with this permissions can swear.
- SwearSlapper.notify - People with this get notified when people swear!
Commands
- /ss add <word> - Add a word to the blacklist.
- /ss remove <word> - Remove a word from the blacklist.
- /ss check <word> - Check if a word is blacklisted.
- /ss list - Shows a list of all the blacklisted words.
- /ss reload - Reload the plugin's files.
- /ss help - Shows the SwearSlapper help menu.
- /caps - Manually slap a player for excessive caps.
- /language - Manually slap s player for bad language.
To do:
- Make the slap configurable.
- Add more words
- Add a configurable list of blocked words.
- Add in-game config reload.
- Add what the offender said in the alert message (will be configurable)
Install/Config:
Installation instructions and other help is all included in the help.txt file inside the SwearSlapper.zip!
Change Log:
v2.0.0
- Almost completely recoded the plugin to work more efficiently.
- Added a completely configurable list of blacklisted words.
- Added commands in-game to control the blacklisted words by adding, removing, checking and getting a list of all blacklisted words.
- Added a config and blacklist reload command.
- Added a help file!
- Added option in config to show the swear attempt.
- Added filtering through CommandBook and HeroChat's /me command.
- Fixed lightning strike
v1.1.5
- Fixed the plugin being in a ZIP (Sorry!)
- Added commands to the plugin
v1.1.2:
- Added configurable lightning strike on offending players.
- Fixed player's name not showing up on notify message.
v1.0.1:
- Added configurable messages
Source Code
Both myself and Killjoy64 no longr develop Java plugins for Minecraft, so this project will no longer be continued. If any developers wish to continue this project you can fork the source on my GitHub here: https://github.com/JamoBox/SwearSlapper Thanks for anyone who decides to continue this!
Please comment below any bugs you find or plugins this won't work with. All comments are very much appreciated.
Hey, could you add a warning system, so if the person swears, it will give them a warning. If they use them all up, it executes a command (mute, kick ect)
Hey all, I'm using SS and it seems to be letting regular users to cuss. Anyone have any clue?
Great plugin but it won't work with my server because of super spleef :( Can you change the main command to /swearslapper ?
Is it able to detect someone trying to swear by typing it with spaces, or dashes etc.
Can you have a version that doesnt have the permission to swear so it blocks everyone from swearing (including OP's)
any updates?
Oh hey thanks to this killjoy64 guy for helping majorly in the v2! Man what an awesome plugin they made :D
In some other chat filter plugin you can add a full word match or partial word match. Some others have a way to filter smartly cutting spaces and substituting numbers or other characters for certain words. It would be nice if all these could somehow find their way into one good plugin =)
@fungreenfox
With SwearSlapper v2.0.0 you can now create your own list for any language! Have fun!
@fungreenfox Yes, I have heard this problem before. This is what gave me the idea of working on a configurable list of blacklisted words. That will mean you have complete freedom for any language and have a way to block and allow any amount of your own words, all from commands in-game. I am still working on this, although development on this is going slow as I have been very busy. I'm still doing the odd bit in my free time though!
@Creeper98HD I put NoSwear on my test server to check. It would appear that NoSwear overrides it, maybe sometime in the future I can make it work with this so it slaps them on warning when used with NoSwear.
this does only work for english ppl.
I am danish and i type "slut" to say "end". Nu er historien slut. this means i get punished for speaking danish? End of story.
can i use both noswear and swearslapper?
Thanks, I actually forgot to test the lightning before releasing :S I will have a look at try and figure out why it isn't working. Again, thanks for reporting this :)
Looking forward to your configurable list. Also, I have the lightning enabled on version 1.1.5 and it doesn't seem to be working.
Thanks!
Finally got around to updating! My deepest apologies for those that have not been able to use this because of some of it's problems. I am doing my final exams so I have been very busy and have not had much time to do any work on this project. As soon as I have more time I will work on the configuration! For now, I have updated it to a .jar and added some commands to keep people happy :) Thanks for being patient!
Sorry about the newest release being in ZIP format, I simply clicked the wrong compile type :P I will upload it again as a jar shortly. Sorry it has taken me so long from my last reply, I am doing my final year exams and have had a lot going on. This shouldn't take long so I will bump it up in my priority list :)
Why is version 1.1.2 an uncompiled zip not a jar?
Strange, it seems to work fine for me and a lot of others. Are you sure there aren't any other plugins on your server that it may conflict with? I will upload a new version soon in a jar for you.
2 things- It doesn't work :( :( :( I put it in the plugin folder, it doesn't even recognize it as a plugin.. Nothing in the console...
2nd- Your download is a .zip file when it should be a .jar, I had to convert it into .jar, it still didn't work after D: