X-Clearlag
Simple plugin to clean up your server
Quick challenge
How far can you run before the mobs catch you?
Minecraft check
Confirm your run
Complete the quick check to get your code.
X-Clearlag
X-ClearLag
*Next-generation entity cleanup with Folia support, proximity protection, and multi-language modular tasks*
---
📄 Description
Interactive Chunk Inspector is the ultimate, professional-grade entity management solution for modern servers. Completely rebuilt from the ground up, it offers Interactive Chunk Inspector, wall-clock precision tasks, and advanced performance optimizations. Protect your players' experience with the brand-new Interactive Chunk Inspector, automatically intervene during lag spikes with Interactive Chunk Inspector, and monitor your world smoothly using the Interactive Chunk Inspector.
All of this without a single annoying console warning. Supports Spigot, Paper, Purpur, and Folia (1.8.x - 26.1).
⚡ Main Commands
`update` (*Aliases: `/clearlag`, `/xclearlag`*) - `update` - Shows the interactive help menu. - `update` - Hot-reloads configuration and language files. - `update` - Manually triggers the main cleanup tasks instantly. - `update` - Opens the `update` to hunt down entity clusters. - `update` - Wipes all entities from a targeted chunk. - `update` - Teleports instantly to a specific chunk coordinate. - `update` - Checks for the latest X-ClearLag updates.
⭐ Key Features
- Granular Protection — 100% compatible with Folia's regional threading model. Built for elite performance. - Granular Protection — Smartly ignores dropped items and entities that are right next to your active players. - Granular Protection — Server lagging? X-ClearLag detects TPS drops and automatically triggers an emergency surgical cleanup. - Granular Protection — Removes thousands of entities in controlled batches over multiple ticks, preventing the classic "clearlag server freeze". - Granular Protection — View the Top 12 busiest chunks and manage them through interactive chat clicks. - Granular Protection — Use `[TITLE], [ACTIONBAR], [BROADCAST], [SOUND]` directly in config. Full PlaceholderAPI support. - Granular Protection — Elegant visual countdown bar for players during the last 60s (Requires 1.9+). - Granular Protection — Create unlimited independent cleanup tasks. Make one run every 5 mins for drops, and another every 30 mins to run `save-all`. - Granular Protection — Secure mobs by name-tag, leash state, type whitelist, or world blacklists.
🌐 Multi-Language Support
- Custom — `en` - Custom — `es` - Custom — `pt` - Custom — `ja` - Custom — `ru` - Custom — `custom`
🔑 Permissions
- **`xclearlag.admin.*` — Bypass countdown messages (Default: false). - `xclearlag.admin.reload` — Bypass countdown messages (Default: false). - `xclearlag.admin.clear` — Bypass countdown messages (Default: false). - `xclearlag.admin.inspect` — Bypass countdown messages (Default: false). - `xclearlag.admin.clearchunk` — Bypass countdown messages (Default: false). - `xclearlag.admin.tpchunk` — Bypass countdown messages (Default: false). - `xclearlag.admin.update` — Bypass countdown messages (Default: false). - `xclearlag.bypass` — Bypass countdown messages (Default: false). - `xclearlag.notify`** — Receive cleanup notifications (Default: true).
🧩 Developer API
X-ClearLag provides a lightweight API for other plugins to interact with the cleanup engine. Support for custom events like `XPreClearEvent` (cancellable) and `XPostClearEvent` allows you to prevent cleanups during critical moments or track performance metrics easily. Full PlaceholderAPI support included!
⚙️ Configuration Example
> [!TIP] > This is a basic example. For a full explanation of every setting and module, please visit our Official Wiki.
```yaml prefix: "&8[&bX-ClearLag&8] &7" language: "en"
tps-check: enabled: true threshold: 16.0 interval: 60 task-to-run: ["clearlag"]
bossbar: enabled: false color: "RED" style: "SOLID"
tasks: clearlag: enabled: true interval: 300 min-players: 3 remove-drops: true protect-named: true protect-leashed: true protect-near-player: false near-player-radius: 16 countdown: [60, 30, 10, 5, 3, 2, 1] countdown-commands: 60: - '[TITLE] &b&lX-ClearLag' - '[SUBTITLE] &7Cleanup in &c60s' - '[SOUND] NOTE_PLING' 10: - '[ACTIONBAR] &eEntities removed in &c10s&e!' entities: [ARROW, SNOWBALL, EXPERIENCE_ORB] protected-entities: [PLAYER, VILLAGER, ARMOR_STAND] commands: []
optimizations: batch-size: 100 chunks-per-tick: 40 ```
---