HomeJavaModsChatManagement2
ChatManagement2
ModsJava

ChatManagement2

by MistaSoup · on Modrinth

ChatManagement 2 Advanced Anti-Spam & Chat Protection Plugin for Minecraft 1.21.x ChatManagement 2 is a complete rewrite of the original ChatProtection…

⬇ Download on Modrinth

ChatManagement 2

Advanced Anti-Spam & Chat Protection Plugin for Minecraft 1.21.x

ChatManagement 2 is a complete rewrite of the original ChatProtection plugin, featuring improved spam detection algorithms, fewer false positives, and enhanced performance. Fully compatible with Folia's region-based threading.


🎯 Key Features

Smart Spam Detection

Blocked Words System

Anti-Spam Protection

Auto-Mute System

Private Messaging

Chat Enhancement

Technical Excellence


📦 Installation

  1. Download the latest ChatManagement2-1.0.0.jar
  2. Place in your server's plugins folder
  3. Start/restart your server
  4. Configure plugins/ChatManagement2/config.yml to your needs
  5. Run /cm reload to apply changes

Requirements


⚙️ Configuration

Basic Setup

The default configuration works well out-of-the-box, but you can customize everything:

# Core spam detection
settings:
  similarity-threshold: 80  # 0-100%, higher = more strict
  message-history-size: 10  # Messages to track per player

# Duplicate message blocking
duplicate-messages:
  max-repeats: 2            # Allow 2 repeats before blocking
  cooldown-seconds: 30      # Clear history after this time

# Rapid spam detection
anti-spam-kick:
  enabled: true
  message-threshold: 7      # Messages in time window = kick
  time-window-seconds: 5

# Auto-mute for repeat offenders
auto-mute:
  enabled: true
  kick-threshold: 3         # Kicks in window = mute
  kick-window-minutes: 10
  mute-duration-seconds: 300

Advanced Configuration

Database Setup

For better performance with many mutes, enable database storage:

SQLite (Recommended for most servers):

database:
  enabled: true
  type: sqlite

MySQL (For large servers):

database:
  enabled: true
  type: mysql
  mysql:
    host: localhost
    port: 3306
    database: chatmanagement
    username: your_username
    password: your_password

Blocked Words

Configure the word filter to your needs:

blocked-words:
  enabled: true
  block-partial-matches: false  # Prevent false positives
  min-word-length: 4            # Minimum length for partial matching
  word-list:
    - badword1
    - badword2

Custom Messages

All messages can be customized and toggled:

messages:
  notify-blocked-message: false  # Silent blocking
  blocked-message-notification: "&cYour message was blocked."
  
anti-spam-kick:
  notify-player: true
  kick-message: "&cYou have been kicked for spamming!"

auto-mute:
  notify-player: true
  mute-notification: "&cYou have been muted for &e{duration} &cseconds."
  mute-message: "&cYou are muted. Time remaining: &e{time} &cseconds."

Private Messaging

Customize PM appearance:

private-messaging:
  enabled: true
  message-color: "&d"  # Magenta
  sent-format: "&7[&dYou &7-> &d{receiver}&7] &r{message}"
  received-format: "&7[&d{sender} &7-> &dYou&7] &r{message}"

Chat Colors

Enable colored chat feature:

chat-colors:
  enabled: true
  color-prefix: ">"       # Type >message for colored text
  prefix-color: "&a"      # Light green

📝 Commands

Main Commands

Private Messaging


🔐 Permissions


🔧 Troubleshooting

Too Many False Positives

If legitimate messages are being blocked:

  1. Increase similarity threshold:

    settings:
      similarity-threshold: 85  # Higher = more strict, fewer false positives
    
  2. Disable partial word matching:

    blocked-words:
      block-partial-matches: false
    
  3. Increase minimum message length:

    duplicate-messages:
      min-message-length: 5
    

Messages Not Being Blocked

If spam is getting through:

  1. Decrease similarity threshold:

    settings:
      similarity-threshold: 75  # Lower = catches more spam
    
  2. Lower spam thresholds:

    anti-spam-kick:
      message-threshold: 5
    
  3. Enable debug mode:

    settings:
      debug: true
    

    Check console for detection information.

Database Issues

If database connection fails:

  1. Check credentials in config
  2. Ensure database exists (for MySQL)
  3. Plugin will automatically fall back to YAML storage
  4. Check console for error messages

📊 Performance

ChatManagement 2 is designed for minimal impact:


🆚 Differences from ChatProtection

ChatManagement 2 is a complete rewrite with major improvements:

  1. Better Accuracy - Improved spam detection with fewer false positives
  2. Length-Based Filtering - Prevents blocking short, legitimate messages
  3. Partial Match Control - Smart boundary detection for blocked words
  4. Database Support - Optional SQLite/MySQL for better performance
  5. Enhanced Mute System - Pause/resume on disconnect/reconnect
  6. Improved Configuration - More granular control over all features
  7. Better Documentation - Comprehensive comments and examples

📋 Changelog

v1.0.0 (Initial Release)

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more