AntiSwear Plugin (1.8 - 1.12)

Status
This thread has been locked.

Landon

wow!
Supreme
Feedback score
111
Posts
1,590
Reactions
2,040
Resources
7
This is my first plugin. Releasing it for free because I'm pretty proud of it, although it's a super simple concept.
What is this?
This is a lightweight plugin that checks player messages for words that you have blacklisted in the config.yml file. If a blacklisted word is in the message, it is replaced with a configurable word. (Default '****'.) It also plays a sound when you say a blacklisted word (This was for me to test sounds on the BukkitAPI, but I liked the idea, so never removed it).

Commands / Permissions:
/antiswear : antiswear.admin : Use help command.
/antiswear reload : antiswear.admin : Reload config.
/antiswear add <word> : antiswear.admin : Add word to config.
/antiswear remove <word> : antiswear.admin : Remove word from config.
antiswear.bypass : Bypass censored words.

Supported Versions:
Bukkit / Spigot 1.8 - 1.12

Config.yml:
Code:
# These are the words that will be censored.
blacklist:
  - Fuck
  - Bitch
  - Ass
  - AddWords

# Color codes are not supported.
# This is what swear words will be replaced to.
censor: '****'

Download:
https://github.com/iReligion/AntiSwear/raw/master/AntiSwear.jar

Source Code:

Want to see the code of the project? I know for me- seeing code helps me understand, especially if I am confused. This is a great tool for new Developers such as myself.

https://github.com/iReligion/AntiSwear

To-do:
Turn this into a full on Chat core, with chat lock, muting, chat clear, anti advertising, etc (When I'm good at Java).
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Landon

wow!
Supreme
Feedback score
111
Posts
1,590
Reactions
2,040
Resources
7
Feel free to PM me with advice on my code. But don't trash my thread, I'm just a man tryna develop.
 

Landon

wow!
Supreme
Feedback score
111
Posts
1,590
Reactions
2,040
Resources
7
If it's a project that is more of a "challenge" rather than an actual plugin, then it's good - if not, this won't suffice for an anti-swear.

Also, JavaPlugin already implements CommandExecutor so no need to implement it(if you've extended JavaPlugin).
"This is my first plugin. Releasing it for free because I'm pretty proud of it, although it's a super simple concept.".
It's not meant to be a full on anti-swear. Easily bypassable if I type "shi.t". I plan to add a Regex feature in the future to detect attempts at bypassing. It was more of a project for me to start with, as stated in the first sentence.
 
Status
This thread has been locked.
Top