The ClearLag plugin for Minecraft servers is a powerful tool designed to enhance server performance and combat common sources of lag. It offers a comprehensive suite of features to keep your server running smoothly:
**Automated Clearing:**
Automatically removes dropped items and various entities after a configurable time, with a visible countdown broadcast to players. You can exclude specific items or entities from being cleared.
### **Performance Optimizations:**
**Redstone Optimization:**
Helps prevent lag machines by limiting the update rate of Redstone components.
**Item Frame & Armor Stand Limiter:**
Sets limits on how many item frames and armor stands can be placed per chunk and globally, preventing excessive entity counts.
**Mob Spawn Limiter:**
Controls the number of hostile and passive mobs that can naturally spawn within a given area, reducing mob-related lag.
**Hopper & Farm Optimizations:**
Includes features to mitigate lag from complex hopper systems and large-scale farms (with placeholders for more advanced logic).
**AI Optimization for Mobs:**
Reduces the processing load of mob AI by despawning mobs that are far away from players.
### **Monitoring & Diagnostics:**
**Performance Metrics:**
Provides detailed real-time statistics on server TPS (Ticks Per Second), MSPT (Milliseconds Per Tick), CPU usage, and RAM consumption over various timeframes (1, 5, 10 minutes).
**Performance Warnings:**
Notifies administrators in the console if server performance drops below set thresholds.
**Chunk Scanner/Lag Profiler:**
Allows scanning loaded chunks to identify areas with high entity and item counts, helping pinpoint lag sources.
**User Control:**
All features are highly configurable via the config.yml file, allowing server owners to enable/disable specific optimizations and adjust parameters to fit their server's needs.
**Commands & Tab Completion:**
Easy-to-use /clearlag commands for manual clearing, reloading, checking performance, killing mobs, and scanning, with convenient tab completion for subcommands and options.