CustomLag
ModMIT

CustomLag

Fabric mod to simulate lag for servers and single player worlds by delaying packets from sending and receiving

498
Downloads
1
Followers
3 months ago
Updated
📦
7
Versions

📖About CustomLag

About the Mod

This Mod simulates lag by delaying the processes of receiving and sending packets. This is done by injecting a ContextHandler inside the ChannelPipeline of a minecraft connection. This mod works only for servers and single player worlds.

Usage

To set or change the latency/ping for a player, just use the lag command:

/lag set <playername> <latency>

Setting lag will be saved to a toml file, so even after restart, the settings
will remain. You can also set the lag of offline players (who have not currently
joined yet.)

In order to remove the lag of a player, you can use:

/lag remove <playername>

(this removes the ContextHandler that delays packets from sending)

Some additional commands are:

There are also some addional quality of live -ish commands, like increase the
keep alive / ping packets interval, to find more, just enter

/customlag