- 版权类型
- 原创
- 版权链接
- #
- 语言支持
- 中文(简体)
- 前置组件
- LegacyScriptEngine:https://github.com/LiteLDev/LegacyScriptEngine
LeviLamina: https://github.com/LiteLDev/LeviLamina
- 适配版本(基岩)
- 最新版本
[申明]
- 反馈问题前请排查依赖是否正确加载!
- 反馈请在QQ群反馈:1045392458
- 插件允许整合,要整合记得在讨论区说一声
- 求求给个好评罢!!
[介绍]
一个基于LegacyScriptEngine制作的TPS监视器+优化TPS插件
[使用方法]
- 下载本插件,解压到./plugins/目录;
- 开服,将会在./plugins/TpsMonitorAndFix目录自动创建配置文件。
[配置文件]
JSON:
{
// 阈值设置
"thresholds": {
"min_tps": 8.0, // 低于此TPS触发保护
"check_interval": 5000, // 检测间隔(毫秒)
"low_tps_duration": 10000, // 持续低TPS多久才触发保护(毫秒) 默认10秒
"fix_duration": 600000 // 修复模式持续时间(毫秒) 默认10分钟
},
// 行为开关:卡顿时的处理策略
"actions": {
"freeze_redstone": true, // 是否拦截红石更新
"freeze_hopper": false, // 是否冻结漏斗(通过tick freeze实现,默认关闭)
"disable_tnt_explosion": true,// 是否禁用TNT爆炸
"disable_mob_griefing": true, // 是否禁用生物破坏
"disable_command_blocks": true,// 是否禁用命令方块
"broadcast_msg": true // 是否向全服发送卡顿提示
},
// 清理策略:卡顿时要清除什么
"cleanup": {
"items": true, // 掉落物
"xp_orbs": true, // 经验球
"tnt_entity": true // 已点燃的TNT实体
}
}
}