Перейти к содержимому
Mineforgian

X-Clearlag

Simple plugin to clean up your server

Загрузки
1K
Подписчики
2
Обновлён
31 марта 2026 г.
Лицензия
MIT

Опубликован 18 февраля 2026 г.

Spigot Wiki Discord

X-ClearLag

Next-generation entity cleanup with Folia support, proximity protection, and multi-language modular tasks


📄 Description

X-ClearLag is the ultimate, professional-grade entity management solution for modern servers. Completely rebuilt from the ground up, it offers native Folia compatibility, wall-clock precision tasks, and advanced performance optimizations. Protect your players' experience with the brand-new Proximity Protection system, automatically intervene during lag spikes with TPS-based emergency cleanups, 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

/xcl [subcommand] (Aliases: /clearlag, /xclearlag)

  • help - Shows the interactive help menu.
  • reload - Hot-reloads configuration and language files.
  • clear - Manually triggers the main cleanup tasks instantly.
  • inspect - Opens the Interactive Chunk Inspector to hunt down entity clusters.
  • clearchunk <world> <x> <z> - Wipes all entities from a targeted chunk.
  • tpchunk <world> <x> <z> - Teleports instantly to a specific chunk coordinate.
  • update - Checks for the latest X-ClearLag updates.

⭐ Key Features

  • Folia & Next-Gen Support — 100% compatible with Folia's regional threading model. Built for elite performance.
  • Player Proximity Protection — Smartly ignores dropped items and entities that are right next to your active players.
  • TPS Monitor & Auto-Cleanup — Server lagging? X-ClearLag detects TPS drops and automatically triggers an emergency surgical cleanup.
  • Batch Processing & Anti-Spike — Removes thousands of entities in controlled batches over multiple ticks, preventing the classic "clearlag server freeze".
  • Interactive Chunk Inspector — View the Top 12 busiest chunks and manage them through interactive chat clicks.
  • Internal Notifications & PAPI — Use [TITLE], [ACTIONBAR], [BROADCAST], [SOUND] directly in config. Full PlaceholderAPI support.
  • BossBar Countdown — Elegant visual countdown bar for players during the last 60s (Requires 1.9+).
  • Task-Based Architecture — 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

  • Englishen
  • Españoles
  • Portuguêspt
  • 日本語ja
  • Русскийru
  • Customcustom

🔑 Permissions

  • xclearlag.admin.* — Grants all admin permissions (Default: OP).
  • xclearlag.admin.reload — Access to /xcl reload.
  • xclearlag.admin.clear — Access to /xcl clear.
  • xclearlag.admin.inspect — Access to /xcl inspect.
  • xclearlag.admin.clearchunk — Access to /xcl clearchunk.
  • xclearlag.admin.tpchunk — Access to /xcl tpchunk.
  • xclearlag.admin.update — Access to /xcl update.
  • 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.

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

Need help? Join our Discord Community or read the Official Wiki!

Ченджлог

1.7Релиз26.1, 26.1.1, 26.1.2 · 31 марта 2026 г.

🚀 CHANGELOG - v1.6

  • Folia Support: ⚡ Fixed UnsupportedOperationException and added Folia support.
  • Regional Deletion: 🏗️ Safe entity cleanup using runTaskOnEntity.
  • Zero-Latency Scanning: 🔍 Non-blocking scanning using entity snapshots.
  • Zero-Latency Cleanup: 🚀 Batch processing was removed for all cleanups (manual and automatic) for instant completion, as a bug was preventing the process from finishing.
  • Safe Detection: 🕵️ Improved detection of regional servers (Folia/Paper).
1.6Релиз1.21.9, 1.21.10, 1.21.11 · 25 марта 2026 г.

🚀 CHANGELOG - v1.6

⭐ NEW FEATURES & IMPROVEMENTS

  • Folia Support: Fully compatible with Folia's regional threading model using a new Reflection-based universal adapter.
  • Modular Architecture: Rewritten codebase for Spigot, Paper, and Folia from 1.8.8 up to 1.21.x.
  • Anti-Lag Engine: Non-blocking chunk scanning and batched entity removal (Zero lag spikes).
  • Developer API & Events: Expanded API with custom events (XPreClearEvent, XPostClearEvent) and new documentation.
  • New Metrics: Enhanced /xcl stats and /xcl lag with real-time performance tracking.
  • PAPI Support: Native high-performance placeholders.

🛠️ BUG FIXES & OPTIMIZATION

  • Full Localization: All messages are now configurable in the messages/ folder.
  • Universal Compilation: Built against Spigot 1.8.8 but runtime-ready for modern Minecraft.
  • Smart Protection: Improved rules for named entities, custom items, and leashed mobs.
1.5Релиз1.21.9, 1.21.10, 1.21.11 · 9 марта 2026 г.

🚀 CHANGELOG - v1.5

⭐ New Features & Improvements

  • Synchronized Title System: Perfect titles! Now [TITLE] and [SUBTITLE] are sent in a single packet, allowing you to configure them on separate lines without them overwriting each other.
  • Advanced Sound System: Support for audio parameters Sound;Volume;Pitch and compatibility with native Minecraft sounds (e.g., entity.wither.spawn).
  • Hardened Command Interception: Ultra-robust internal command system that ignores spaces, casing, and prevents "Unknown command" errors in your console.
  • Pure NMS Reflection: Removed BungeeCord dependency. The plugin is now 100% independent and lightweight, using reflection for maximum compatibility.
  • Consolidated Cleanup Messages: Clean and aggregated reports when executing manual cleanups.
  • Full PAPI Support: Native integration with PlaceholderAPI and internal placeholders.

🔧 Bug Fixes & Optimizations

  • Logic Correction: Fixed the remove-drops bug when the entity list was empty.
  • Console Clean-up: Eliminated all deprecated method warnings (sendTitle).
  • Core Performance: Optimized entity scanning engine to reduce impact on the Main Thread.
1.4Релиз1.21.9, 1.21.10, 1.21.11 · 8 марта 2026 г.

🚀 v1.4 - THE STABILITY UPDATE

⭐ New Features & Improvements

  • Internal Notifications: ¡Notifica a tus jugadores sin llenar la consola! Nuevos prefijos [TITLE], [ACTIONBAR], [BROADCAST], [MESSAGE], [SOUND] para los comandos de cuenta regresiva.
  • PlaceholderAPI & Internal Placeholders: Soporte completo para PAPI y placeholders internos %time% y %task% en cualquier mensaje.
  • Bungee-Independent Architecture: Adiós a las dependencias externas. Ahora usamos reflexión pura para enviar Títulos y ActionBars, garantizando compatibilidad total en Bukkit, Spigot, Paper, Folia y Purpur (1.8.8 - 1.21+).
  • Manual Clear Aggregation: Al usar /xcl clear, ahora recibirás un único mensaje consolidado con el total real de entidades eliminadas de todas las tareas.
  • Folia Support: Compatibilidad total con el programador regional de Folia.

🔧 Bug Fixes & Optimizations

  • Logic Fix: Corregido el error donde remove-drops: true no funcionaba si la lista de entidades estaba vacía.
  • Warning Clean-up: Eliminado el aviso de "sendTitle" deprecado en la consola mediante fallbacks inteligentes.
  • Performance: Refactorización interna para un menor consumo de CPU durante los escaneos de entidades.
1.3Релиз1.21.9, 1.21.10, 1.21.11 · 25 февраля 2026 г.

🚀 v1.3 CHANGELOG

⭐ NEW FEATURES

🍃 Folia Support: Added full compatibility with Folia using regional schedulers.

🔍 Interactive Diagnostics: New /xcl inspect command to find and clear laggy chunks via chat buttons.

📈 TPS Monitor: Automatically trigger cleanup tasks when server performance drops.

📊 BossBar: Optional visual countdown (Reflection-based, supporting 1.8.9 through 1.21.x).

🔑 Advanced Permissions: Granular control with permissions like xclearlag.admin.inspect and xclearlag.admin.update.

🔇 Silent Mode: Added silent: true per task to hide all chat announcements.

🔄 Manual Update: Check for new versions instantly with /xcl update.


1.2Релиз1.21.9, 1.21.10, 1.21.11 · 20 февраля 2026 г.

v1.2 CHANGELOG

⭐ NEW FEATURES

Performance: Timers now use real time (immune to server lag and low TPS). Optimization: Added min-players setting to pause tasks when the server is empty. Countdown Commands: Execute commands at specific seconds (e.g., /title, sounds). Language Files: Fixed bugs when renaming files and added support for custom files. Console Cleanup: Fixed “Legacy plugin” warnings, unnecessary startup logs, and command spam. JSON Fix: Fixed bugs when using JSON-formatted commands (such as /title).

1.1Релиз1.21.9, 1.21.10, 1.21.11 · 18 февраля 2026 г.

🌀 v1.1 - CHANGELOG

🟠 ⭐ NEW FEATURES

Countdown Warnings: Players are warned before each cleanup at configurable intervals (60s, 30s, 10s, 5s, 3s, 2s, 1s). Entity Type Filters: Define exactly which entity types to remove per task using Bukkit EntityType names. Protected Entities Whitelist: Entity types listed as protected are never removed, regardless of other settings. Protect Named Entities: Entities with a custom nametag are automatically kept safe. Protect Leashed Entities: Leashed animals are never removed during cleanup. Manual Clear Command: New /xcl clear command to trigger a cleanup instantly without waiting. Cleanup Statistics: Broadcasts the number of entities removed after each cleanup. Tab Completion: /xcl now autocompletes subcommands (reload, clear).

🔵 ⚡ MULTI-LANGUAGE SUPPORT

English, Español, Português, 日本語, Русский, Custom. Change language in config.yml and reload — no restart needed.

🟣 ⚙️ CONFIGURATION

Fully rewritten config.yml with detailed English comments on every option. Multiple independent tasks, each with its own interval, countdown and entity filters. New permissions: xclearlag.notify (receive messages) and xclearlag.bypass (skip notifications).

1.0Релиз1.21.9, 1.21.10, 1.21.11 · 18 февраля 2026 г.

Init

Комментарии

Загружаем…