
占位符
| 占位符 | 功能 | 说明 |
|---|---|---|
| %clearlag_nextclear% | 下次清理时间 | 显示距离下一次计划的自动实体清理的剩余时间。输出格式为可读形式,例如 5m 30s(5 分 30 秒) |
| %clearlag_nextclear_seconds% | 下次清理时间的扩展 | 显示距离下一次计划的自动实体清理的剩余时间。仅以秒为单位显示 |
| %clearlag_autoclear_enabled% | 显示自动清理开启/关闭状态 | 显示自动清理是否处于开启或关闭状态 |
| %clearlag_autoclear_interval% | 显示自动清理的时间间隔 | 显示设置的自动清理时间间隔 |
| %clearlag_lastclear_items% | 显示上次自动清理的物品统计 | 显示在自动清理期间移除的物品数量。 |
| %clearlag_lastclear_entities% | 仅显示上次自动清理的实体 | 上次自动清理中移除的实体确切数量(不包括物品) |
| %clearlag_lastclear_total% | 显示上次清理中删除的内容总量 | 上次清理中移除的所有实体的总数(物品 + 其他实体) |
| %clearlag_stats% | 上次清理统计 | 显示在最近一次自动或手动清理操作中移除的实体数量。示例输出:已移除 150 个实体 |
| %clearlag_entity_total% | 实体总数(服务器) | 提供服务器上所有世界中当前加载的所有实体的绝对数量。 |
| %clearlag_entity_world_<worldname>% | 实体数量(按世界) | 显示特定世界中的实体数量,通过将 <worldname> 替换为实际世界名称来实现。你也可以使用占位符 %clearlag_entities_in_world_<worldname>%,功能相同。例如,%clearlag_entity_world_world_nether% 将仅显示下界中的实体数量 |
| %clearlag_dropped_items_total% | 掉落物总数 | 当前在所有世界中地面上存在的掉落物实体的总数 |
| %clearlag_ram% | 内存使用情况 | 报告服务器的当前 Java 虚拟机 (JVM) 内存使用情况。通常显示已用内存与总分配内存的比例,单位为兆字节 (MB)。示例输出:1024.55 MB / 2048 MB |
| %clearlag_mobs_total% | 生物总数(怪物) | 所有活体生物(动物和怪物,不包括玩家、物品等)的总数 |
| %clearlag_loaded_chunks% | 已加载区块总数 | 服务器上已加载区块的总数 |
| %clearlag_chunkunload_threshold% | 显示设置多少生物后卸载区块 | 显示用于自动区块卸载的实体阈值设置。 |
| %clearlag_lastunload_chunks% | 显示在自动卸载扫描期间卸载的区块总数 | 在自动卸载扫描过程中卸载的所有区块的总数 |
English
ClearLag++:
Minecraft 服务器的 ClearLag++ 插件是一款强大的工具,旨在提升服务器性能并全面解决卡顿问题。它提供了多种智能功能,确保服务器运行流畅且稳定。
智能实体管理
自动清理:
在可配置的时间后自动移除掉落的物品和实体,并带有可见的倒计时。
- 全面保护: 排除对命名生物、养殖生物以及带有记分板标签的生物进行清理。
- 死亡后 & 近期活动保护: 保护死亡掉落物以及在玩家附近掉落的物品,保护时长可配置。
- 智能堆叠: 合并超过正常上限(64)的物品,并将不可堆叠的物品(如药水)分组,以保持实体数量低位。
- 清理特效: 在实体被清理时添加可配置的粒子效果和声音,使过程更加无缝自然。
定向移除:
管理员可以使用 /clearlag killmobs 或 /clearlag nuke 命令选择性移除敌对生物、被动生物或所有生物。
高级性能优化
红石 & 物理优化:
限制红石组件的更新速率,防止因大量下落方块事件(沙/砾石)或活塞机械装置导致的卡顿。
实体 & 方块实体限制器:
对每个区块和全局范围内的物品展示框、盔甲架、载具、投射物以及方块实体(漏斗、箱子、刷怪笼)设置严格限制。
生物生成 & 繁殖限制器:
控制自然生成速率,并通过限制每个区块的动物数量来防止因繁殖导致的卡顿。
AI 优化(基于距离的消失):
移除距离所有玩家超过可配置距离的生物,消除它们带来的 AI 寻路开销。注意: 这会直接消失该生物本身,而不仅仅是关闭其 AI。命名、繁殖、标记、驯服和拴绳的生物默认会被排除,且游戏本身永远不会消失的生物始终保留。
环境与连接控制:
限制火焰蔓延、液体流动和传送门的使用。包含一个基于 ProtocolLib 的数据包速率限制器,以阻止因网络导致的延迟。
监控、诊断与动态控制
性能指标与监控:
提供 TPS、MSPT、CPU 占用率和 RAM 使用量的实时统计数据。包含用于实时监控的 BossBar 性能计。
动态视距:
根据实时 TPS 和玩家活动自动调整全服务器的视距和模拟距离。
性能警报与快照:
当性能出现峰值或低于阈值时,通知管理员并自动保存延迟快照(详细报告)。
诊断工具:
区块扫描器可识别实体数量过多的区块,而延迟分析器则突出显示性能瓶颈。启用调试模式后,插件移除的每一个实体都会连同负责该操作的特性一起写入控制台——因此,如果某个实体消失且没有为其显示移除行,您就能立即知道 ClearLag 并非原因。
多世界与时间支持:
具备按世界配置文件和基于时间的规则功能,允许在白天、夜晚或事件模式下设置独特的参数。
按区域规则 (WorldGuard):
将各个区域标记为清除免疫,使其内部的实体在所有清除操作中幸存,并按区域覆盖敌对和被动生物的限额——非常适合市场、竞技场和活动区域。
全面的集成:
原生完整支持 LuckPerms、Discord 网页钩子、PlaceholderAPI、WorldGuard 和 ProtocolLib,以及第三方插件如 MythicMobs、EliteMobs、Nexo、Oraxen、ItemsAdder、LevelledMobs、Citizens、主要全息图和 NPC 插件以及所有常见的生物堆叠插件。
LuckPerms
所有权限/命令均可通过 LuckPerms 进行管理
查看我的其他项目 Modrinth
本插件目前处于 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.
支持
如果有任何问题无法正常工作,您可以通过 Discord 或在我的 SpigotMC 页面上告知我
使用的插件:
- InstantLeafDecay by Mobilestars
(需额外授权) - WildStacker
- Ultimate-Stacker
- RoseStacker
- LevelledMobs
- Nexo
- Oraxen
- MythicMobs
- EliteMobs
- Citizens
- FancyNpcs
- FancyHolograms
- Shopkeepers
- DecentHolograms
- ItemsAdder
- WorldGuard
- ProtocolLib
下载:
如果您有任何改进建议或新想法,请通过我的 Discord 告诉我
BStats
赞助商:
使用代码 pluginhub 可在 EPYC 和 Ryzen 服务器上享受 10% 折扣

Placeholder
| 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_dropped_items_total% | Total Dropped Item Count | The total number of dropped item entities currently lying on the ground across all worlds |
| %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 |
English
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 (Distance-Based Despawn):
Removes mobs that are further from every player than a configurable distance, eliminating the AI and pathfinding cost they cause. Note: this despawns the mob itself, it does not merely switch its AI off. Named, bred, tagged, tamed and leashed mobs are excluded by default, and any mob the game itself never despawns is always kept.
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. With debug mode enabled, every single entity the plugin removes is written to the console together with the feature responsible — so if something disappears and no removal line appears for it, you know immediately that ClearLag was not the cause.
Multi-World & Time Support:
Features Per-World Profiles and Time-Based Rules allowing for unique settings during day, night, or event modes.
Per-Region Rules (WorldGuard):
Mark individual regions as clear-immune so entities inside them survive every clear, and override the hostile and passive mob limits per region â ideal for marketplaces, arenas and event areas.
Comprehensive Integration:
Full native support for LuckPerms, Discord webhooks, PlaceholderAPI, WorldGuard and ProtocolLib, plus third-party plugins like MythicMobs, EliteMobs, Nexo, Oraxen, ItemsAdder, LevelledMobs, Citizens, the major hologram and NPC plugins, and every common mob stacker.
LuckPerms
All permissions/commands can be managed via LuckPerms
See my other Projects Modrinth
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.
SUPPORT
If something doesn't work, you can let me know on Discord or on my SpigotMC Page
Plugins Used:
- InstantLeafDecay by Mobilestars
(With an extra License) - WildStacker
- Ultimate-Stacker
- RoseStacker
- LevelledMobs
- Nexo
- Oraxen
- MythicMobs
- EliteMobs
- Citizens
- FancyNpcs
- FancyHolograms
- Shopkeepers
- DecentHolograms
- ItemsAdder
- WorldGuard
- ProtocolLib
Downloads:
If you have any suggestions for improvement or new ideas, please let me know on my dc
BStats
Sponsor:
Use Code pluginhub for 10% on both EPYC and Ryzen servers
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 ClearLag++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新日志:
新增:
- 无
修复:
- 物品复制漏洞已关闭。 死亡保护不再在死亡被取消或开启“保留物品”时再次掉落你的物品。当其他插件阻止移除时,物品合并和实体堆叠不再产生物品或实体的副本。玩家或漏斗拾取的智能堆叠现在始终给出正确的数量。
- 储物矿车和箱船得以保留。
/clearlag killmobs和/clearlag nuke不再删除装有物品的箱子/漏斗矿车、箱船或驮着箱子的驴和羊驼——连同其所有内容物。 /clearlag killmobs evil捕获所有敌对实体(洞穴蜘蛛、僵尸村民、恼鬼、蠹虫、猪灵等)。Boss、有骑手的实体、拴绳的实体和 NPC 不受影响。遇到未知类型时会显示用法说明而非静默忽略。/clearlag nuke设有大小限制。 新增nuke部分:最大半径(max-radius,默认 200)以及高于confirm-above-radius(默认 50)时的确认步骤。驯服的宠物和 NPC 会被保留。- 活塞限制器和液体流动限制器现已生效。 此前
piston-limiter.max-per-minute和liquid-flow-limiter.threshold-per-second设置被忽略。 - 使用
check-delay-ticks: 0的物品合并功能现已正常工作(此前从未真正执行过合并)。 - 投射物限制器会保留三叉戟以及玩家可以重新拾取的箭矢。
- 反崩溃机制不再删除合法物品玩家从创造模式菜单丢弃或取出的物品——物品会被修剪或保留在背包中。
- 数据包限制器: 违规记录会随时间重置,拦截阈值可配置(
block-after-violations),且工作人员警报需要新的权限clearlag.packetlimit.alert。 - 时间规则: 夜间默认不再清除实体,且世界配置文件(world profile)的优先级高于时间规则。
- 其他小修复: 版本检查不再将旧版本报告为更新;Discord 消息不再能 ping @everyone;
/clearlag restart拒绝不合理的延迟值;/clearlag worldprofiles仅接受存在的世界;补全提示仅显示你有权使用的命令;车辆限制同样适用于玩家放置的矿车和船(绕过权限:clearlag.bypass.limit);仅 OP 身份不再绕过权限检查(更新通知权限:clearlag.update);日志文件现在改为轮转式的clearlag.log,而非无限增长的log.yml;所有剩余的德语消息均已替换为英语并置于messages.yml中。 - 移除了未使用的配置项
performance.*和piston-limiter.chunk-limit。
移除:
- 无
更新日志:
新增内容:
- 无
修复内容:
-1作为限制值现在表示“无限制”。 在盔甲架/物品展示框、方块实体、刷怪笼、活塞或繁殖限制器中,将chunk-limit(区块限制)或global-limit(全局限制)设置为-1会阻止一切行为(无法放置盔甲架和物品展示框,刷怪笼停止工作,动物无法繁殖)。现在-1会关闭该项检查,就像它对载具限制器所做的那样。
移除内容:
- 无
更新日志:
新增内容:
- 无
修复问题:
- 拴绳不再被清除。
/clearlag clear all(以及启用实体自动清除时)会移除栅栏上的拴绳结,导致被拴住的动物挣脱并丢失拴绳。现在,拴绳结和拴绳上的生物将始终保留。你可以通过设置auto-clear.protect-leads: false来关闭此保护。 - 画作不再被清除,就像物品展示框一样。
移除内容:
- 无
更新日志:
新增功能:
-
支持 Folia: ClearLag++ 现已兼容 Folia,同时仍支持 Spigot、Paper 和 Purpur,使用同一个 jar 包即可。在你已使用的服务器上无需任何更改。在 Folia 环境下,“卸载区块”(unload Chunks)功能不可用。
-
自动重启: 每天在固定时间(例如
04:00)或每隔数小时自动重启服务器。玩家会在聊天栏看到倒计时并伴有提示音,最后几秒会显示大号标题文字、动作栏以及 Boss 血条。重启前将执行save-all命令,随后以友好的消息踢出所有玩家,服务器停止运行,或使用 Spigot 的重启脚本/你指定的任意命令。/clearlag restart 10m [reason]- 10 分钟后重启(也支持90s、1h30m、04:30或now)/clearlag restart cancel- 取消待处理的重启/clearlag restart status- 显示下次重启的时间- 新增权限
clearlag.restart,新增占位符%clearlag_nextrestart%和%clearlag_nextrestart_seconds%。
修复内容:
-
/clearlag clear all不再移除末地水晶。 之前末地的主岛石柱上的水晶(以及玩家放置的水晶)会被删除,导致龙战失败及龙重生机制失效。现在这些水晶将被始终保留。Crystal-PvP 类型的服务器可设置auto-clear.protect-end-crystals: false以重新清除它们。 -
自动清理倒计时可能比设定值更慢。 在某些服务器(Folia 上始终存在此问题)中,原本设定的 30 秒间隔实际耗时为 60 秒。现在该计时严格遵循你配置的时间。
移除内容:
- 无
更新日志:
新增内容:
- 无
修复问题:
- ItemsAdder:玩家掉落的物品从未被清除。 在使用 ItemsAdder 的服务器上,玩家丢弃的所有物品都被视为 ItemsAdder 内容而未被清除,而方块掉落物则正常移除。现在仅真正的 ItemsAdder 自定义物品受到保护;普通掉落物将再次被正确清除。此修复同样适用于 Nexo 和 Oraxen。
移除内容:
- 无
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。

评论 0
登录后参与评分
还没有评论,来抢沙发吧