一款面向 PaperMC(1.21.11)的轻量级、零配置服务器优化插件,仅在服务器真正需要时自动清除掉落物。
与那些在固定时间间隔盲目清除物品(往往让玩家感到沮丧)的传统清 lag 插件不同,OptimizerPlugin 会主动监控服务器的运行状况,仅在实际出现严重卡顿(lag spikes)时才进行干预。
✨ 功能特性
- 智能 TPS 监控: 该插件持续检查服务器的每秒刻数(TPS)。当服务器运行平稳时,插件完全处于休眠状态。
- 紧急清理: 如果服务器 TPS 降至 10.0 以下(表明因大规模挖掘或实体拥挤导致严重卡顿),插件会立即移除所有已加载世界中所有的掉落物实体,以释放内存。
- 零配置: 无需设置复杂的配置文件或权限。只需将
.jar 文件放入 plugins 文件夹,重启服务器即可即时生效。
- 管理员警报: 每当触发紧急清理时,会在服务器控制台中记录一份清晰的报告,详细说明当时的确切 TPS 以及被移除的物品数量。
⚙️ 技术细节
- 环境要求: Paper 1.21.11(或其分支如 Purpur)以及 Java 21。
- 性能表现: 编写得极其轻量,无任何后台开销。
非常适合生存服、SMP 服,或任何希望在不打扰玩家群体的前提下实现自动防卡顿的服务器所有者!
A lightweight, zero-configuration server optimization plugin for PaperMC (1.21.11) that automatically clears dropped items only when your server actually needs it.
Unlike traditional clear-lag plugins that wipe items on a blind, repeating timer (which often frustrates players), OptimizerPlugin actively monitors your server's health and only intervenes during genuine lag spikes.
✨ Features
- Smart TPS Monitoring: The plugin continuously checks your server's Ticks Per Second (TPS). It sits completely dormant while your server is running smoothly.
- Emergency Sweeps: If the server's TPS drops below 10.0 (indicating severe lag from massive mining sessions or entity cramming), it immediately removes all dropped item entities across all loaded worlds to free up memory.
- Zero Configuration: No complicated configs or permissions to set up. Just drop the
.jar file into your plugins folder, restart your server, and it works instantly.
- Admin Alerts: Whenever an emergency sweep is triggered, it logs a clean report in the server console detailing the exact TPS and the number of items removed.
⚙️ Technical Details
- Requirements: Paper 1.21.11 (or forks like Purpur) and Java 21.
- Performance: Written to be incredibly lightweight with zero background overhead.
Ideal for survival servers, SMPs, or any server owner who wants automatic lag protection without annoying their player base!
评论 0
登录后参与评分
还没有评论,来抢沙发吧