SetPing

模组

· 作者 apphhzp

一个可以故意增加网络延迟的有趣模组。

0 本站下载 0 关注 更新于 1 年前

最新 1.1.0 · 1.16.5 · Forge

一键开服(送7天)
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,可以人为增加游戏网络数据包的延迟和丢包率。

在配置文件中,你可以调整数据包延迟的最小值和最大值,以及开启调试日志输出。

命令格式

/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 级权限)。此命令用于设置从服务端到目标玩家的客户端的数据包延迟和丢包率。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源