Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
English
This mod adds a command /setping
that can deliberately increase latency and packet loss rate for game network packets.
In the config file, you can adjust the minimum and maximum packet delay values, as well as enable debug log output.
Command Format
/setping get [<player>]
Requires Level 2 permission. This command is used to obtain the latency and packet loss rate settings for the target player on both the client and server sides.
/setping client <rate> <min_ping> <max_ping> [<player>]
Level 3 permissions are required (if a target player needs to be specified, level 4 permissions are required). This command is used to set the packet delay and packet loss rate from the target player's client to the server.
Among them, rate
is the packet loss rate, and the packet delay will be a random number (in milliseconds) from min_ping
to max_ping
, the same applies below.
/setping server <rate> <min_ping> <max_ping> [<player>]
Level 3 permissions are required (if a target player needs to be specified, level 4 permissions are required). This command is used to set the packet delay and packet loss rate from the server to the target player's client.
中文
这个模组添加了一条命令/setping
,可以手动给游戏的网络发包增加延迟和丢包率。
在config文件中可以调整发包延迟的最小值和最大值,以及开启debug日志输出。
命令格式
/setping get [<player>]
需要2级权限,用于得到目标玩家在客户端与服务端上的延迟和丢包率设置。
/setping client <rate> <min_ping> <max_ping> [<player>]
需要3级权限(如需指定目标玩家,则需4级权限),用于设置目标玩家的客户端向服务端的发包延迟和丢包率。
其中rate
为丢包率,发包延迟将为min_ping
到max_ping
中的随机数(单位为毫秒),下同。
/setping server <rate> <min_ping> <max_ping> [<player>]
需要3级权限(如需指定目标玩家,则需4级权限),用于设置目标玩家的服务端向客户端的发包延迟和丢包率。