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
-
View User Profile
-
Send Message
Posted Jan 1, 2015@waoler
Uhm, try to add § (real color character)
-
View User Profile
-
Send Message
Posted Dec 29, 2014@Den_Abr
It is already inserted. I try to put "&ahello" in, but it doest´n work.
-
View User Profile
-
Send Message
Posted Dec 28, 2014@waoler
I dont have this problem http://joxi.ru/gmvejOdiLD3xra?d=1. Try to add this symbol in allowedsymbols.txt
-
View User Profile
-
Send Message
Posted Dec 27, 2014Since we have updated tp 6.4.1 nobody can write with colors. If we type: "&ahello" the output is: "ahello". How can we solve this problem ?
-
View User Profile
-
Send Message
Posted Dec 16, 2014@Fabii159
Ok, gonna make it soon.
@ChillerKraft
No, this plugin only dont let players type same commands(from config) in a short time
-
View User Profile
-
Send Message
Posted Dec 16, 2014does this have command cooldown abilities at all for other plugins commands etc
-
View User Profile
-
Send Message
Posted Dec 15, 2014Hello, your Plugin is all in all very nice, but a important feature is missing. Please add a permission for ignore a cleared chat.
For example a Player insult all and my Team clear the chat very fast. But who insult ? hmmmm if much players are on the server its very diffucult to see the name so fast... ^^
I hope my english is not too unintelligible.
-
View User Profile
-
Send Message
Posted Oct 17, 2014Could the "/ cg add gw" command is added?
It would be used to add a word that carries with it a dirty word within its structure (This error occurs when filtering in Spanish language). One example.
"Com(puta)dora" "Vendo (lag)rimas de Ghast"
The words within the parenthesis are words we filter, but otherwise use them without the intent to insult, are censored.
Could also be possible that the filter is added in usernames?
I apologize for the bad language, and if it can not understand much of the comment, but still do not know much English and by the time I rely on Google Translate
-
View User Profile
-
Send Message
Posted Sep 20, 2014This plugin confuses me. When I'm playing on servers I get warnings for the most silly things. For example one server lets you select warps by clicking blocks in your inventory. I right-click a block. The server lags and the block gets placed. I then get a warning for spamming commands, even though I had no malicious intent! I agree that I have had my fair share of legit warnings, but 70% of them are for reasons like the one above i.e. I'm innocent.
I'm wondering if the warnings automatically expire after time. I don't want to get banned from my favourite server because of reasons like the one above.
-
View User Profile
-
Send Message
Posted Aug 5, 2014Is it possible to add bungeecord support?
-
View User Profile
-
Send Message
Posted Jul 30, 2014Can plugin also support that word in whitelist can ignore flood ?
-
View User Profile
-
Send Message
Posted Jun 28, 2014Is it just me or can this be avoided by adding a space somewhere in the word?
For example, if the word I wanted to block was 'money' I could avoid the filter by writing 'mon ey'
-
View User Profile
-
Send Message
Posted Jun 25, 2014can i replace ip, by other word? :D
-
View User Profile
-
Send Message
Posted Jun 4, 2014@Den_Abr
Thank you very much.
-
View User Profile
-
Send Message
Posted Jun 4, 2014@Fabyold
Set config's encoding to UTF-8 and remove patterns section
-
View User Profile
-
Send Message
Posted Jun 4, 201404.06 06:51:57 [Multicraft] Skipped 11 lines due to rate limit (30/s) 04.06 06:51:54 [Server] INFO at net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [craftbukkit-1.7.5.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 04.06 06:51:54 [Server] INFO at net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [craftbukkit-1.7.5.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 04.06 06:51:54 [Server] INFO at net.minecraft.util.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [craftbukkit-1.7.5.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 04.06 06:51:54 [Server] INFO at net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [craftbukkit-1.7.5.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 04.06 06:51:54 [Server] INFO at net.minecraft.util.io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [craftbukkit-1.7.5.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 04.06 06:51:54 [Server] INFO at net.minecraft.util.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:131) [craftbukkit-1.7.5.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 04.06 06:51:54 [Server] INFO at net.minecraft.util.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:232) [craftbukkit-1.7.5.jar:git-Bukkit-1.7.2-R0.3-14-g8f8716c-b3042jnks] 04.06 06:51:54 [Server] INFO at com.comphenix.protocol.injector.netty.ChannelInjector.decode(ChannelInjector.java:376) [ProtocolLib.jar:?] 04.06 06:51:54 [Server] INFO at com.comphenix.protocol.injector.netty.NettyProtocolInjector.onPacketReceiving(NettyProtocolInjector.java:247) [ProtocolLib.jar:?] 04.06 06:51:54 [Server] INFO at com.comphenix.protocol.injector.netty.NettyProtocolInjector.packetReceived(NettyProtocolInjector.java:281) [ProtocolLib.jar:?] 04.06 06:51:54 [Server] INFO at com.comphenix.protocol.injector.PacketFilterManager.invokePacketRecieving(PacketFilterManager.java:581) [ProtocolLib.jar:?] 04.06 06:51:54 [Server] INFO at com.comphenix.protocol.injector.PacketFilterManager.handlePacket(PacketFilterManager.java:614) [ProtocolLib.jar:?] 04.06 06:51:54 [Server] INFO at com.comphenix.protocol.injector.SortedPacketListenerList.invokePacketRecieving(SortedPacketListenerList.java:67) [ProtocolLib.jar:?] 04.06 06:51:54 [Server] INFO at com.comphenix.protocol.injector.SortedPacketListenerList.invokeReceivingListener(SortedPacketListenerList.java:114) [ProtocolLib.jar:?] 04.06 06:51:54 [Server] INFO at ru.Den_Abr.ChatGuard.Packets.PLPackets$1.onPacketReceiving(PLPackets.java:48) [ChatGuard.jar:?] 04.06 06:51:54 [Server] INFO at ru.Den_Abr.ChatGuard.Handlers.ChatHandler.onChat(ChatHandler.java:47) [ChatGuard.jar:?] 04.06 06:51:54 [Server] INFO at ru.Den_Abr.ChatGuard.Workers.Checkers.checkAdvert(Checkers.java:99) [ChatGuard.jar:?] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.compile(Pattern.java:1022) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.<init>(Pattern.java:1337) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.compile(Pattern.java:1665) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.expr(Pattern.java:1964) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.sequence(Pattern.java:2018) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.group0(Pattern.java:2854) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.expr(Pattern.java:1964) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.sequence(Pattern.java:2090) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO at java.util.regex.Pattern.error(Pattern.java:1924) [?:1.7.0_45] 04.06 06:51:54 [Server] INFO ^ 04.06 06:51:54 [Server] INFO ([0-9a-z_?-?]{2,}\.)+(ru|com|org|ua|su|tv|net|biz|info|name|mobi|kz|by|lv|eu|tk|??m)(:\d*)? 04.06 06:51:54 [Server] INFO java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 80 04.06 06:51:54 [Server] ERROR Unhandled exception number 64 occured in onPacketReceiving(PacketEvent) for ChatGuard
CRAFTBUKKIT CB 1.7.5
-
View User Profile
-
Send Message
Posted May 5, 2014hi,
my chatguard ( v6.2) tells me sometimes, that player x tried to swear, but when i check the log for that, i dont even see a word from the swearlist?
shoulndt it just count in words from the swearlist? and if theres another list, signs, whatever, where are they took from?
more over:
users that dont have overwrite for swearing can use words that are on the swearlist and it dosen get count.
asking arround showed up they get also warned if they just place a sign, without anything written on it?
no errors in console...
-
View User Profile
-
Send Message
Posted Apr 30, 2014@DenTsar
Да, это отличный плагин!
-
View User Profile
-
Send Message
Posted Apr 21, 2014Это может показаться странным, но я тебя знаю. Да и ты меня. Если помнишь...то я Tsar) Очень крутой плагин, но мат не устраняет. С флудом все ок) Но хотелось бы чтобы он скорость сообщений регулировал, а не их повторность (Хотя было бы круто и то и другое) P.S. Писал очень много, но оказалось, что я вышел из аккаунта. Пришлось переписывать >_<
-
View User Profile
-
Send Message
Posted Apr 13, 2014Is this plugin can prevent flood even if the message is a bit different ?
Like this: "Come in HG3" "Come in HG3 please" "Come in HG3 please !!!"
?