AntiRedstoneLag
AntiRedstoneLag 可阻止 Paper、Purpur 和 Folia 服务器上的失控红石时钟和 0 刻活塞循环,同时不会破坏玩家的农场。
完整文档位于 synkfr.github.io/AntiRedstoneLag。
功能介绍
当区块内的红石更新超过配置的限制时,插件可以暂时冻结时钟、发送警报(不阻塞任何东西)、取消信号或移除方块。
- 默认非破坏性 (
FREEZE):暂停快速时钟 15 秒,并取消失控信号,而不会破坏红石粉或活塞。
- 仅通知模式 (
/arl redstone notify):让所有农场不受干扰地运行,并在电路激增时向工作人员发送坐标、更新计数和玩家名称。
- 即时开关 (
/arl redstone off 和 /arl redstone on):从游戏内或控制台开启或关闭红石限制,并立即清除任何活动的冻结或区块锁定。
- TPS 延迟原因查找:当 Paper 服务器上的 TPS 低于
adaptive.min-tps 或 MSPT 超过 adaptive.target-mspt 时,插件会找出最繁忙的红石区块,并通知工作人员是谁在运行它。
- 实时检查器和快照:使用
/arl inspect 实时检查区块更新率,使用 /arl snapshot 检查最近的触发记录,或使用 /arl hotspots 分组查看繁忙区域。
- ClearLagg 实体清理器:按定时器移除掉落的物品和配置的实体,同时保护有名字、已驯服、拴绳、骑乘以及 SMP 模式的生物。
安装
- 从 Modrinth 或 GitHub Releases 下载 jar 文件。
- 将其放入服务器的
plugins/ 文件夹中。
- 重启服务器以生成
config.yml 和 messages.yml。
需要在 Paper、Purpur 或 Folia(Minecraft 1.21.4 至 26.3)上运行 Java 21 或更高版本。
命令
| 命令 |
用途 |
权限 |
/arl redstone <on|off|notify|status> |
开启、关闭或设为仅通知模式 |
antiredstonelag.redstone |
/arl alerts <on|off|status> |
静音或启用工作人员延迟警报 |
antiredstonelag.alerts |
/arl inspect [seconds] |
切换实时 BossBar 区块计量表 |
antiredstonelag.inspect |
/arl hotspots [page|export] |
显示或导出活跃的红石集群 |
antiredstonelag.hotspots |
/arl snapshot [list|view|tp|clear] |
查看或传送至捕获的延迟点 |
antiredstonelag.snapshot |
/arl clear [items|all|mobs|projectiles|xp|vehicles|count|cancel|timer] |
清理地面物品和导致延迟的实体 |
antiredstonelag.clear |
/arl stats |
显示监控的区块、方块和移除数量 |
antiredstonelag.stats |
/arl logs [download] |
显示日志状态和最新日志文件详情 |
antiredstonelag.logs |
/arl reload |
重新加载 config.yml 和 messages.yml |
antiredstonelag.reload |
/arl help |
列出可用命令 |
antiredstonelag.use |
拥有 antiredstonelag.bypass 权限的玩家在其放置的方块上不受限制。
从源码构建
mvn clean package
阴影 jar 文件将写入 target/AntiRedstoneLag-26.5.jar。
披露信息
- 使用 bStats 指标(插件 ID
27839),可在 plugins/bStats/config.yml 中切换。
- 启动时检查
https://api.modrinth.com/v2/project/5UOt11Yc/version 以获取较新的发布版本。
- 维护和错误修复过程中使用了 AI 编码工具,并由人类审核。
链接
AntiRedstoneLag
AntiRedstoneLag stops runaway redstone clocks and 0-tick piston loops on Paper, Purpur, and Folia servers without destroying player farms.
Full documentation lives at synkfr.github.io/AntiRedstoneLag.
What it does
When redstone updates in a chunk pass the configured limits, the plugin can freeze the clock temporarily, send alerts without blocking anything, cancel the signal, or remove the block.
- Non-destructive by default (
FREEZE): Pauses fast clocks for 15 seconds and cancels runaway signals without breaking redstone dust or pistons.
- Notification-only mode (
/arl redstone notify): Lets every farm run untouched and sends staff the coordinates, update counts, and player name when a circuit spikes.
- Instant toggle (
/arl redstone off and /arl redstone on): Turns redstone limiting off or back on from in-game or console and clears any active freezes or chunk locks right away.
- TPS lag culprit lookup: When TPS drops below
adaptive.min-tps or MSPT passes adaptive.target-mspt on Paper, the plugin finds the busiest redstone chunk and notifies staff who is running it.
- Live inspector and snapshots: Check chunk update rates live with
/arl inspect, inspect recent trips with /arl snapshot, or group busy areas with /arl hotspots.
- ClearLagg entity cleaner: Removes dropped items and configured entities on a timer while keeping named, tamed, leashed, mounted, and SMP mobs safe.
Installation
- Download the jar from Modrinth or GitHub Releases.
- Drop it into your server's
plugins/ folder.
- Restart the server to generate
config.yml and messages.yml.
Requires Java 21 or newer on Paper, Purpur, or Folia (Minecraft 1.21.4 through 26.3).
Commands
| Command |
Purpose |
Permission |
/arl redstone <on|off|notify|status> |
Switch protection on, off, or notify-only |
antiredstonelag.redstone |
/arl alerts <on|off|status> |
Mute or enable staff lag alerts |
antiredstonelag.alerts |
/arl inspect [seconds] |
Toggle the live BossBar chunk meter |
antiredstonelag.inspect |
/arl hotspots [page|export] |
Show or export active redstone clusters |
antiredstonelag.hotspots |
/arl snapshot [list|view|tp|clear] |
View or teleport to captured lag sites |
antiredstonelag.snapshot |
/arl clear [items|all|mobs|projectiles|xp|vehicles|count|cancel|timer] |
Clear ground items and lag entities |
antiredstonelag.clear |
/arl stats |
Show monitored chunks, blocks, and removals |
antiredstonelag.stats |
/arl logs [download] |
Show log status and latest log file details |
antiredstonelag.logs |
/arl reload |
Reload config.yml and messages.yml |
antiredstonelag.reload |
/arl help |
List available commands |
antiredstonelag.use |
Players with antiredstonelag.bypass are exempt on blocks they placed.
Building from source
mvn clean package
The shaded jar is written to target/AntiRedstoneLag-26.5.jar.
Disclosures
- Uses bStats metrics (plugin ID
27839), toggleable in plugins/bStats/config.yml.
- Checks
https://api.modrinth.com/v2/project/5UOt11Yc/version on startup for newer release builds.
- AI coding tools were used during maintenance and bug fixes under human review.
Links
评论 0
登录后参与评分
还没有评论,来抢沙发吧