ChunkEnforcer 是一个插件,当矿车或特定方块(如红石)位于区块内时,可防止该区块卸载。其代码经过优化,力求高效并尽量减少服务器卡顿。
典型用途:
- 区块卸载时红石线路停止工作,需要手动重置所有时钟
- 矿车可能停止移动(本插件为矿车提供了特殊模式)
- 或许你正在运营一个 IndustrialCraft 服务器,并希望维持工业设施持续运行?这也同样适用!
该插件提供两种基础模式,可通过简易配置文件启用或禁用(首次启动时自动生成配置)。
模式 A:若移动中的矿车位于区块内或其附近,则保持该区块加载。
模式 B:若指定方块位于区块内,则保持该区块加载(通过 ID 标识,也可在配置中定义;默认包含红石)。
权限:
chunkenforcer.control - 允许使用 /chunkenforcer 命令
命令:
/chunkenforcer reload - 从磁盘重新加载配置文件
/chunkenforcer info - 显示关于 ChunkEnforcer 的当前信息
整个系统利用区块快照机制进行优化,并在可能的情况下采用延迟/多线程检查,以节省服务器资源消耗。
ChunkEnforcer is a plugin which keeps chunks from being loaded when a Minecart or certain blocks (such as Redstone) are in it and is coded to be efficient and cause the least lag possible.
Example uses:
- Redstone wiring stops working while the chunk unloads and you need to reset all clocks manually
- Minecarts can stop moving (this plugin includes a special mode for minecarts)
- Maybe have an IndustrialCraft server and wish to keep your industry running? That works aswell!
The plugin has two base modes which can be enabled and disabled using an easy config (auto-generated on first launch).
Mode A: Keep chunk loaded if a moving minecart is in (or close) to it.
Mode B: Keep chunk loaded if a specified block is in it (by ID, can be defined using config too, by default includes redstone).
Permissions:
chunkenforcer.control - Allows to use the /chunkenforcer command
Commands:
/chunkenforcer reload - Reloads the config from disk
/chunkenforcer info - Gives you current information about ChunkEnforcer
The whole system is optimized using the chunk snapshot system and delayed/threaded checks where possible to save on server power.
评论 0
登录后参与评分
还没有评论,来抢沙发吧