




<details>
<summary>Placeholder</summary>
| Placeholder | Function | Explanation |
|---------------------|:---------------------:|---------------------:|
| %clearlag_nextclear% | Next Clear Time | Displays the time remaining until the next scheduled automatic entity clear. The output is formatted in a readable format, such as 5m 30s (5 minutes and 30 seconds) |
| %clearlag_nextclear_seconds% | Extension for nextclear | Displays the time remaining until the next scheduled automatic entity clear. Only in Seconds will be Displayed
| %clearlag_autoclear_enabled% | Show If AutoClear Is On/Off | Show If AutoClear Is On/Off |
| %clearlag_autoclear_interval% | Shows the Time of Auto Clear | Displays the time set for auto clear |
| %clearlag_lastclear_items% | Shows Stats for last Auto Clear | Shows how many items were removed during auto clear. |
| %clearlag_lastclear_entities% | Shows only entitys for last Auto Clear | The exact number of entities removed during the last auto-clear (excluding items) |
| %clearlag_lastclear_total% | Shows what was deleted in the last clear | The total number of all removed entities (items + other) during the last clear |
| %clearlag_stats% | Last Clear Statistics | Shows the number of entities that were removed during the most recent automated or manual clear action. Example output: 150 entities have been removed |
| %clearlag_entity_total% | Total Entity Count (Server) | Provides the absolute count of all entities currently loaded across all worlds on the server. |
| %clearlag_entity_world_<worldname>% | Entity Count (Per World) | Displays the number of entities in a specific world defined by replacing <worldname> You can also use the placeholder %clearlag_entities_in_world_<worldname>%, it does the same thing For example, %clearlag_entity_world_world_nether% would show the entity count only in the Nether |
| %clearlag_ram% | RAM Usage | Reports the server's current Java Virtual Machine (JVM) memory usage. It typically shows the used memory versus the total allocated memory in megabytes (MB). Example output: 1024.55 MB / 2048 MB |
| %clearlag_mobs_total% | Total Entity Count (Mobs) | The total number of all living mobs (animals and monsters, excluding players, items, etc.) |
| %clearlag_loaded_chunks% | Total Chunks Loaded Chunks | The total number of all loaded chunks on the server |
| %clearlag_chunkunload_threshold% | Shows how many mobs have been set until the chunk is unloaded | Displays the set entity threshold for automatic chunk unloading. |
| %clearlag_lastunload_chunks% | Displays the total number of Chunks discharged during the automatic discharge scan | The total number of all Chunks That got unloaded while the auto unload scan |
</details>
<details>
<summary>English</summary>
# **ClearLag++**:
---
The ClearLag++ plugin for Minecraft servers is a **powerful tool** for increasing server performance and **comprehensively combating lag**. It offers a variety of intelligent features to ensure smooth and stable operation.
### **Intelligent Entity Management**
**Automatic Cleanup:**
Automatically removes dropped items and entities after a configurable time, with a visible countdown.
* **Comprehensive Protection:** Excludes **named mobs**, **farmed mobs**, and mobs with a **scoreboard tag** from being cleaned up.
* **After-Death & Recent-Activity Protection:** Protects death drops and items dropped near players for a configurable duration.
* **Smart Stacking:** Merges items beyond the normal 64 limit and groups non-stackable items (like potions) to keep entity counts low.
* **Clean-up Effects:** Adds configurable particles and sounds when entities are cleared to make the process feel seamless.
**Targeted Removal:**
Administrators can selectively remove hostile, passive, or all mobs using `/clearlag killmobs` or `/clearlag nuke`.
### **Advanced Performance Optimizations**
**Redstone & Physics Optimization:**
Limits the update rate of redstone components and prevents lag from mass falling-block events (sand/gravel) or piston-heavy contraptions.
**Entity & Tile Entity Limiter:**
Sets strict limits for **Item Frames, Armor Stands, Vehicles, Projectiles, and Tile Entities** (Hoppers, Chests, Spawners) per chunk and globally.
**Mob Spawn & Breeding Limiter:**
Controls the natural spawn rate and prevents breeding lag by limiting the number of animals per chunk.
**AI Optimization for Mobs:**
Reduces processor load by **throttling or removing** the AI of mobs that are far from players.
**Environmental & Connection Control:**
Throttles fire spread, liquid flow, and portal usage. Includes a **Packet Rate Limiter** (ProtocolLib) to stop network-based lag.
### **Monitoring, Diagnostics, and Dynamic Control**
**Performance Metrics & Monitoring:**
Provides real-time statistics on **TPS**, **MSPT**, **CPU utilization**, and **RAM usage**. Includes a **BossBar Performance Meter** for live monitoring.
**Dynamic View Distance:**
Automatically scales server-wide view distance and simulation distance based on real-time TPS and player activity.
**Performance Alerts & Snapshots:**
Notifies administrators and automatically saves **Lag Snapshots** (detailed reports) when performance spikes or falls below thresholds.
**Diagnostic Tools:**
The **Chunk Scanner** identifies chunks with high entity counts, while the **Lag Profiler** highlights performance bottlenecks.
**Multi-World & Time Support:**
Features **Per-World Profiles** and **Time-Based Rules** allowing for unique settings during day, night, or event modes.
**Comprehensive Integration:**
Full native support for **LuckPerms**, **Discord webhooks**, **PlaceholderAPI**, and third-party plugins like **MythicMobs**, **EliteMobs**, **Nexo**, **Oraxen**, **Citizens**, and more.
---
**LuckPerms**
All permissions/commands can be managed via LuckPerms
--------------------------------------------------------------------
</details>
--------------------------------------------------------------------
**See my other Projects** [Modrinth](https://modrinth.com/user/fernsehheft)
**This Plugin is currently in Beta**
-------------------------------------------------------------------
```
ClearLag Plugin
Copyright (c) [fernsehheft] [2026]
All Rights Reserved.
This software is proprietary and may not be redistributed, modified, or used for commercial purposes without the express written permission of the copyright holder.
```
## SUPORT
If something doesn't work, you can let me know on [**Discord**](https://discord.com/invite/zkduHszK2e)
or on my [**SpigotMC**](https://www.spigotmc.org/resources/clearlag.127506/) Page
### Plugins Used:
- [InstantLeafDecay](https://modrinth.com/plugin/instaleafdecay) by [Mobilestars](https://modrinth.com/user/Mobilestars109)\
(With an extra License)
- [WildStacker](https://bg-software.com/wildstacker/)
- [Ultimate-Stacker](https://songoda.com/plugin/ultimate-stacker-16)
- [RoseStacker](https://www.spigotmc.org/resources/rosestacker.82729/)
- [LevelledMobs](https://www.spigotmc.org/resources/levelledmobs.74304/)
- [Nexo](https://www.nexomc.com)
- [Oraxen](https://oraxen.com)
- [MythicMobs](https://modrinth.com/plugin/mythicmobs/)
- [EliteMobs](https://www.spigotmc.org/resources/elitemobs.40090/)
- [Citizens](https://www.spigotmc.org/resources/citizens.13811/)
- [FancyNpcs](https://modrinth.com/plugin/fancynpcs/)
- [FancyHolograms](https://modrinth.com/plugin/fancyholograms)
- [Shopkeepers](https://www.spigotmc.org/resources/shopkeepers.80756/)
- [DecentHolograms](https://modrinth.com/plugin/decentholograms)
-------------------------------------------------------------------
### **Downloads:**
If you have any suggestions for improvement or new ideas, please let me know on my dc
<details>
<summary>BStats</summary>

</details>
## Sponsor:
[](https://nexo.systems/a/fernsehheft)
### Use Code **pluginhub** for 10% on both EPYC and Ryzen servers