Chat Guard
This plugin protects your server from flood, spam, caps and swearwords in chat, commands and signs. You can configure list of swearwords, punishments and the number of warnings after which the player will be punished.
Features
- Flood prevention
- Caps prevention
- Swearword prevention
- Advetisment prevention
- Informing admins/moders about violations
- Chat cleaning
- Global mute
- Any punishment that you can do with commands
- Player get warnings
- Removing disallowed characters
- Checking for updates (Can be disabled in the config)
- Removes spam from items
Video tutorial
Waiting for tutorial with new version. Contact me if you did :)
Commands
[] - required, () - optional
/chatguard - copyright and version
/chatguard ban [WORD] - Add new banned [WORD]
/chatguard unban [WORD] - Remove banned [WORD]
/chatguard whitelist [WORD] - Do not mark [WORD] as advertisment or swearing
/chatguard cc (ALL|Player) - Clear your (or everyone's/Player's)
/chatguard info (Player) - Show your warnings or (Player)'s
/chatguard globalmute - Toggle globalmute
/chatguard warn [Player] [Type] - Warn [Player]
/chatguard mute [Player] ([Time] (Reason)) - mute player(time format - 1s, 1m, 1h, 1d, default - seconds)
/chatguard unmute [Player] - unmute player
/chatguard clear (Type) (Player) - Clear some warnings
/chatguard help - Show help page
/chatguard reload - Reload plugin configurations
Permissions
Permission | Description |
---|---|
chatguard.* | Full Access! |
chatguard.banword | add new swearwords |
chatguard.unbanword | and remove swearwords |
chatguard.warn | access to /cg warn command |
chatguard.mute | ability to mute players |
chatguard.unmute | and unmute players |
chatguard.whitelist | access to /cg whitelist command |
chatguard.clearwarnings | access to /cg clear command |
chatguard.info | access to /cg list command |
chatguard.info.others | watch information about other players |
chatguard.inform.[flood,spam,swear,caps] | for receiving alerts about violations |
chatguard.clearchat | access to /cg cc commad |
chatguard.clearchat.all | ability to clear chats of all players |
chatguard.clearchat.others | access to cleaning another's chat |
chatguard.globalmute | access to /cg globalmute command |
chatguard.reload | access to /cg reload command |
chatguard.ignore.* | ignore all protections |
chatguard.ignore.[flood,spam,swear,caps,characters] | ignore [flood,spam,swear,caps] protection |
chatguard.ignore.globalmute | ignore global mute |
chatguard.ignore.cooldown | ignore cooldown |
chatguard.ignore.cc | ignore /cg cc ALL |
Metrics and Updater
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version and core
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- The server's location
- Enabled filters
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true. Also plugin checks for updates, that you can change by editing plugins/ChatGuard/config.yml
Ok thanks for the answer.
But i have a smal issue then.
I have the word "con" in the swear word list. And it match all word that contains "con" such as "construction" or "decontamination" so they are censored.
@MonnierAnt
Yes. It use regex, but plugin checks for swear word-by-word and it's impossible to check spaced swear(eg. s w e a r)
Hello
First of all it's a great plugin that you have made.
I have just a question about swearlist.
I would like to know if swear list is a regex or not. if yes so i could do a better check for some swear.
@lst96
This plugin also causes essentials socialspy to appear twice.
@Den_Abr
Config after just opening it and saving it and reclosing(causes error). Also were having a problem that warnings don't reset after they get to 10. People warnings are going to 11 and beyond and they get kicked every time thereafter.
@lst96
Show me edited config
@Den_Abr
I deleted the config and let it regenerate. It seems to only happen after i try to edit the config.
@Supercarrot63
Color codes should be work, I checked it.
@lst96
Update plugin to last version and remove patterns section from config. It will be rewrited with fixed pattern
I can't edit the config at all, when server is offline or online without it erroring when someone swears or does anything. I think this has to do when I try to save with notepad, is there a special way I should be saving this?
@Den_Abr other than that, really good plugin I needed one that blocks everything :)
& color codes don't work. Example: In config I have it set to say &6[&2Chat&7Guard&6]&b, and instead of reading the colors it's in all white and just says the color codes as if it were normal text. I've made sure to put it in 's.
Still doesn't work for me :-(
You should add forced grammar? Like "fyi" will become For Your Information or if a player says "Gay" it'll become "Lollipops".
@TommyDrs
Ahh, I'm also using ProtocolLib-3.2.0. Mine is not working either.
i added "poop" as a blocked word for testing, and it is not warning or censoring it for normal users.
@Den_Abr
Hi Den_Abr, your plugin is fantastic, but in the latest version with protocollib 3.2.0 it has no effect on the chat and if i try to downgrade protocollib to 3.1.2 it works but overrides essentials chat's configurations. I hope you'll fix it because this is a very usefull plugin, thaks.
@epicshams213090
Okay... Perhaps, you can give me more information?
Its not working help plz.
@lst96
6.0 contains fixed patterns
@Den_Abr
Every time I remove it, the plugin just re adds it on next reboot.
@Beuteugeu
Where on what?