ChatPatrol is a very basic chat filter system to execute a command (example /mute or /ban) when a player sends a message containing a blacklisted word set in the config. You can also control chat spam & excessive caps !
Features: Stop harmful words from reaching your in game chat
Ban/Kick or execute any desired command when to the player sending these messages
Add words to your blacklist at anytime and just simply reload the config!
Stop players from spamming chat
Commands: /cp or /chatpatrol - Simple output displaying if the plugin is active or not.
/cp reload - Reload config
Code (Text):
# CHAT PATROL CONFIGURATION | BY JAMPLIFIER
# WORD FILTER
enable-word-filter: true
blacklisted-words:
- "badword1"
- "badword2"
# SPAM FILTER
enable-spam-filter: true
spam-threshold: 3 # Number of messages allowed in a short time period
spam-time-window: 10 # Time window (seconds) to check for spam
# CAPS LOCK FILTER
enable-caps-filter: true
caps-threshold: 3 # Maximum allowed uppercase letters in a message
caps-notification: true
# COMMAND TO EXECUTE FOR PUNISHMENTS
punishments:
blacklisted-words-command: "ban {player} You were banned for using inappropriate language!"
spam-command: "kick {player} You were kicked for spamming!"