跳到正文

Lag Protect

作者:produckzz

Protects lagging players from damage

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Requires Fabric API

Lag Protect

A lightweight, server-side Fabric mod that protects players from taking damage during lag spikes. When a player’s connection stops responding, damage to them is cancelled until they catch back up, so nobody dies to a frozen screen.

How it works

The server sends each player a tiny ping on a configurable interval (default every 30 ticks). If the response is overdue by more than a second and the player has also stopped sending movement packets, they are considered lagging and incoming damage is cancelled. Protection ends the moment the client catches up.

Gamerule

/gamerule lag_protect <ticks> — interval between pings (default 30, range 0-200, 0 disables the mod).

Lower = lag is detected faster, but packets are sent more frequently.

Notes

Protection covers damage only. A player who stays lagged past the vanilla keepalive timeout is still disconnected as normal.

License

This mod is available under the MIT license.

常见问题

Lag Protect 支持哪些 Minecraft 版本?

Lag Protect 支持 Minecraft Java 版 1.20.5–26.2,共 18 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Lag Protect 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

produckzz 的其他作品

查看全部 →