ChunkFreezer
在崩溃机器摧毁你的服务器之前阻止它们。
ChunkFreezer 实时监视每个区块,并冻结那些失控的区块:出错的刷怪农场、失控的红石时钟、卡顿机器以及故意制造的崩溃装置。一旦区块恢复平静,它将自动解冻。无需重启、无需回档、无需手动清理。
当问题被限制在单个区块内时,你的玩家仍可继续游戏。
为什么选择 ChunkFreezer?
卡顿机器和崩溃漏洞不需要很多玩家或很长时间就能让服务器瘫痪。手动修复意味着在 TPS 持续下降的同时深入排查区块。ChunkFreezer 会在越过限制的那一刻做出反应,并在区块再次安全时立即释放它。
- 防护崩溃机器、实体过载和红石滥用
- 仅影响问题区块,世界其余部分不受干扰
- 完全自动化:冻结、通知、恢复
- 对意外过载也安全(大型刷怪农场、粗心的建筑)
功能
| 功能 |
描述 |
| 实时区块监控 |
扫描每个区块中过多的实体和红石活动。 |
| 动态冻结 |
临时禁用过载的区块,以防止卡顿激增和崩溃。 |
| 自动恢复 |
当实体和红石数量恢复到安全水平时,区块会自动恢复。 |
| 可自定义阈值 |
为实体、红石设备和其他参数设置自己的限制。 |
| 管理员警报 |
每当区块被冻结或解冻时都会收到通知。 |
| 轻量级 |
经过优化,为服务器增加极小的开销。 |
| 简单配置 |
所有设置都在一个易于阅读的配置文件中进行。 |
| Folia 支持 |
所有 API 方法都可以从任何线程安全调用。 |
视频
观看展示
开发者 API
ChunkFreezer 提供了一个小型 API,以便你自己的插件可以响应被冻结的区块。所有方法都可以在 Folia 上的任何线程中安全调用,无需先跳转到特定区域。
在被冻结区块期间跳过农场产出
ChunkFreezerAPI api = ChunkFreezerAPI.get();
if (api != null && api.isChunkFrozen(collector.getLocation())) {
return;
}
警告即将走进冻结区块的玩家
@EventHandler
public void onMove(PlayerMoveEvent e) {
ChunkFreezerAPI api = ChunkFreezerAPI.get();
if (api != null && api.isNearFrozenChunk(e.getTo(), 1)) {
e.getPlayer().sendActionBar(Component.text("附近有一个冻结的区块!"));
}
}
列出所有冻结的区块
ChunkFreezerAPI api = ChunkFreezerAPI.get();
if (api == null) return;
for (FrozenChunkManager.FrozenInfo info : api.getFrozenChunks()) {
World world = Bukkit.getWorld(info.worldId());
if (world == null) continue;
getLogger().info(world.getName() + " " + info.cx() + "," + info.cz() + " cause=" + info.cause());
}
支持与反馈
发现错误或有任何想法?请在 GitHub 上打开 Issue,帮助完善 ChunkFreezer。
ChunkFreezer
Stop crash machines before they stop your server.
ChunkFreezer watches every chunk in real time and freezes the ones that go out of control: entity farms gone wrong, runaway redstone clocks, lag machines and deliberate crash contraptions. Once the chunk calms down, it is unfrozen automatically. No restarts, no rollbacks, no manual cleanup.
Your players keep playing while the problem stays contained in a single chunk.
Why ChunkFreezer?
Lag machines and crash exploits don't need many players or much time to bring a server down. Fixing them by hand means digging through chunks while TPS keeps falling. ChunkFreezer reacts the moment a limit is crossed and releases the chunk as soon as it is safe again.
- Protects against crash machines, entity overloads and redstone abuse
- Only the problem chunk is affected, the rest of the world is untouched
- Fully automatic: freeze, notify, recover
- Safe for accidental overloads too (big mob farms, careless builds)
Features
| Feature |
Description |
| Real-Time Chunk Monitoring |
Scans every chunk for excessive entities and redstone activity. |
| Dynamic Freezing |
Overloaded chunks are temporarily disabled to prevent lag spikes and crashes. |
| Automatic Recovery |
When entity and redstone counts return to safe levels, the chunk is restored on its own. |
| Customizable Thresholds |
Set your own limits for entities, redstone devices and other parameters. |
| Admin Alerts |
Get notified whenever a chunk is frozen or unfrozen. |
| Lightweight |
Optimized to add minimal overhead to your server. |
| Simple Configuration |
Everything is set up in an easy, readable config file. |
| Folia Support |
All API methods are safe to call from any thread. |
Video
Watch the showcase
Developer API
ChunkFreezer has a small API so your own plugins can react to frozen chunks. All methods are safe to call from any thread on Folia, with no need to hop to a specific region first.
Skip a farm payout while its chunk is frozen
ChunkFreezerAPI api = ChunkFreezerAPI.get();
if (api != null && api.isChunkFrozen(collector.getLocation())) {
return;
}
Warn a player who's about to walk into a frozen chunk
@EventHandler
public void onMove(PlayerMoveEvent e) {
ChunkFreezerAPI api = ChunkFreezerAPI.get();
if (api != null && api.isNearFrozenChunk(e.getTo(), 1)) {
e.getPlayer().sendActionBar(Component.text("A frozen chunk is nearby!"));
}
}
List every frozen chunk
ChunkFreezerAPI api = ChunkFreezerAPI.get();
if (api == null) return;
for (FrozenChunkManager.FrozenInfo info : api.getFrozenChunks()) {
World world = Bukkit.getWorld(info.worldId());
if (world == null) continue;
getLogger().info(world.getName() + " " + info.cx() + "," + info.cz() + " cause=" + info.cause());
}
Support & Feedback
Found a bug or have an idea? Open an issue on GitHub and help make ChunkFreezer better.
评论 0
登录后参与评分
还没有评论,来抢沙发吧