
在 PingList 似乎不再维护后,我便开始了这个项目。非常感谢 @Dutch1ee 提供了灵感,以及 @Ozelo 推动我制作此插件。
该插件显示的是玩家在 Minecraft 中的延迟,而非 ICMP 延迟。因此,请留意除了客户端与服务器之间的连接外,还会考虑服务器和客户端的负载(磁盘、CPU 和 FPS)。
安装
- 下载 jar 文件
- 将其复制到 plugins 文件夹
- 重启或重载服务器
- 根据需要编辑 config.yml
- 重启或重载服务器
升级
如果您正在升级,请在重启或重载服务器之前删除旧的 PingTab 文件夹,该文件夹和新的 config.yml 将自动创建。在 1.4 版本中,配置文件将自动更新。
配置
在 config.yml 中可以设置:
- AutoUpdate: 启用/禁用自动检查更新(默认:true)
- AutoDownloadUpdate: 启用/禁用自动下载新更新,当禁用时会警告你有新版本(默认:false)
- Interval: 轮询间隔,单位为秒。(默认:3)
- DisableTab: 禁用插件的 Tab 功能部分。(默认:false)
- ShowPluginNameOnMessages: 在向玩家和控制台发送的消息中显示插件名称。请保留此选项启用,以便更多人了解此插件!(默认:false)
- ColoredPingParameter: 使消息中的 %ping 参数根据其值自动着色。
- GoodPing: /ping 命令中低于此数值的延迟将以绿色显示。(默认:200)
- MediumPing: /ping 命令中低于此数值的延迟将以金色显示。如果延迟超过此数值,将以红色显示。(默认:500)
- OwnPingMessage: 当玩家使用 /ping 查看自身延迟时发送的消息。支持使用 & 字符的颜色代码。(默认:"Your ping is %pingms")
- PingMessage: 当玩家使用 /ping 查看其他玩家延迟时发送给该玩家的消息。支持使用 & 字符的颜色代码。(默认:"%playername's ping is %pingms")
- 参数:
- %playername - 玩家名称;
- %ping - 测得的延迟;
- AlertPlayers: 向玩家发出高延迟警报(默认:true)
- AlertThreshold: 延迟高于此值的玩家将收到警报(默认:500)
- AlertInterval: 发送警报的时间间隔,单位为分钟(默认:5)
- AlertMessage: 在警报事件中发送给用户的消息。支持使用 & 字符的颜色代码。(默认:"%playername, your latency of %ping is above %threshold!")
- 参数:
- %playername - 玩家名称
- %ping - 测得的延迟
- %threshold - 设定的阈值
默认 config.yml
# PingTab v1.3.0
# AutoUpdate: Enable/Disable auto update checking
AutoUpdate: true
# AutoDownloadUpdate: Enable/Disable auto downloading new updates, when disabled warns
# you about new versions
AutoDownloadUpdate: false
# Interval: Ping Measurement interval in seconds
Interval: 3
# DisableTab: Disable the tab portion of the plugin.
DisableTab: false
# ShowPluginNameOnMessages: Show the plugin name on messages sent to the players
# and console. Please leave this option enabled so
# more people will know about this plugin!
ShowPluginNameOnMessages: false
# ColoredPingParameter: Make the %ping parameter on messages to be automatically
# colored based on it's value.
ColoredPingParameter: true
# GoodPing: Pings below this number will be printed as green in the /ping command.
GoodPing: 200
# MediumPing: Pings below this number will be printed as gold in the /ping command.
# If the ping gets over this number, it will be printed in red .
MediumPing: 500
# OwnPingMessage: Message that is sent to the player when he check it's own
# ping with /ping. Color codes are supported using & character.
# Parameters: %ping - Ping Measured
OwnPingMessage: "Yourpingis%pingms"
# PingMessage: Message that is sent to player when he check anothe player's
# ping with /ping. Color codes are supported using & character.
# Parameters: %playername - Player Name
# %ping - Ping Measured
PingMessage: "%playername'spingis%pingms"
# AlertPlayers: Alert players about high latency (Default: true)
AlertPlayers: true
# AlertThreshold: Players with the ping higher than this will be alerted.
AlertThreshold: 1000
# AlertInterval: The interval, in minutes, for the alerts to be sent.
AlertInterval: 5
# 警报消息:在触发警报事件时发送给玩家的消息。
# 支持使用 & 字符进行颜色代码设置。
# 参数:%playername - 玩家名称
# %ping - 测得的延迟值
# %threshold - 设定的阈值
AlertMessage: "%playername,yourlatencyof%pingisabove%threshold!"
权限
该插件支持以下权限:
权限节点
- pingtab.* - 允许所有用户使用所有命令
- pingtab.default - 默认配置
- pingtab.showscoreboard - 允许用户查看 PingTab 计分板
- pingtab.ping - 允许用户使用 /ping 命令
- pingtab - 允许用户使用 /pingtab 命令
- pingtab.reload - 允许用户使用 /pingtab reload 命令
- pingtab.checkupdate - 允许用户使用 /pingtab checkupdate 命令
- pingtab.update - 允许用户使用 /pingtab update 命令
默认权限
- pingtab: 任何人
- pingtab.showscoreboard: 任何人
- pingtab.ping: 任何人
- pingtab.reload: 仅限管理员
- pingtab.checkupdate: 仅限管理员
- pingtab.update: 仅限管理员
当前功能
- 在标签页列表中显示延迟
- 支持彩色名称(这意味着如果你使用插件来使名称着色,它将正常工作)
- /ping [player|self|list] 命令
- /pingtab reload 命令
- 高延迟警报
- MCStats
- 权限系统
计划功能
- 基于测量的延迟自动踢出玩家
- 根据半径或限制列出大服务器上的玩家列表
- 按自己的阵营、敌对阵营、其他阵营和独行侠排序列出玩家
- PvP 中的高延迟消息
- 广播高延迟的玩家
- Werewolves 插件支持(使用该插件时存在一些故障)
卸载方法
- 从 plugins 文件夹中移除 jar 文件
- 重启服务器
- 输入 /scoreboard objectives 清理记分板
评价
由 VariationVault 撰写的评价
无法实现的功能
- 可配置且带颜色的测量值:很遗憾,目前尚不支持。
- ICMP 延迟测量:Java 不支持 ICMP,虽然有变通方案,但过于复杂。
MCStats
本插件使用了 Hidendra 的插件指标系统,这意味着以下信息会被收集并/或发送至 mcstats.org:
以下数据会以某种方式从服务器中读取:
- plugins/Plugin Metrics/config.yml 的文件内容(如果不存在则创建)
- 当前在线玩家数量(非最大玩家数)
- 服务器版本字符串(与 /version 命令显示的一致)
- 支持该指标的插件的版本
- Mineshafter 状态 - 它不会正确传播 Metrics 请求,但它是一个非常简单检查,且不读取文件系统
以下数据会发送至 :
- 实现类的 Metrics 修订版
- 服务器的 GUID
- 系统架构
- 当前在线玩家数量(非最大玩家数)
- 服务器版本字符串(与 /version 命令显示的一致)
- 支持该指标的插件的版本
- Minecraft Server Mod
- 服务器的 Java 版本
- 服务器处于离线模式还是在线模式
- 插件的版本
- 服务器的版本
- 操作系统版本/名称及架构
- CPU 的核心数
可以通过编辑 plugins/Plugin Metrics/config.yml 并将 opt-out 更改为 true 来退出此服务。

功能请求与错误报告
如有其他需要的功能,欢迎私信我;错误应在 bukkit.org 的评论区报告。
源代码
你可以在此处获取源代码 这里。只需注明出处即可。
捐赠
如果你喜欢这个插件,欢迎捐赠,我的孩子们会很感激!

I've started this project when PingList doesn't seemed to be maintained anymore, much thanks for @Dutch1ee for the idea and @Ozelo for pushing me into making this.
The plugin shows the players latency inside minecraft, not ICMP. So you should keep in mind that besides the connections between the client and the server, the server and client load (Disk, CPU and FPS) is taken in account.
Installation
- Download the jar
- Copy it to the plugins folder
- Restart or Reload the server
- Edit the config.yml as you please
- Restart or Reload the server
Upgrading
If you are upgrading, remove the old PingTab Folder before restarting or reloading the server, the folder and the new config.yml will be automatically created. On the 1.4 version, the config will be updated automatically.
Configuration
On config.yml you can set:
- AutoUpdate: Enable/Disable auto update checking (Default: true)
- AutoDownloadUpdate: Enable/Disable auto downloading new updates, when disabled warns you about new versions (Default: false)
- Interval: Pooling interval in seconds. (Default: 3)
- DisableTab: Disable the tab portion of the plugin. (Default: false)
- ShowPluginNameOnMessages: Show the plugin name on messages sent to the players and console. Please leave this option enabled so more people will know about this plugin! (Default: false)
- ColoredPingParameter: Make the %ping parameter on messages to be automatically colored based on it's value.
- GoodPing: Pings below this number will be printed as green in the /ping command. (Default: 200)
- MediumPing: Pings below this number will be printed as gold in the /ping command. If the ping gets above this number, it will be printed in red. (Default: 500)
- OwnPingMessage: Message that is sent to the player when he check it's own ping with /ping. Color codes are supported using & character. (Default: "Your ping is %pingms")
- PingMessage: Message that is sent to player when he check anothe player's ping with /ping. Color codes are supported using & character. (Default: "%playername's ping is %pingms")
- Parameters:
- %playername - Player Name;
- %ping - Ping Measured;
- AlertPlayers: Alert players about high latency (Default: true)
- AlertThreshold: Players with the ping higher than this will be alerted (Default: 500)
- AlertInterval: The interval, in minutes, for the alerts to be sent (Default: 5)
- AlertMessage: The message that will be sent to the user on the alert event. Color codes are supported using & character. (Default: "%playername, your latency of %ping is above %threshold!")
- Parameters:
- %playername - Player Name
- %ping - Ping Measured
- %threshold - Threshold Set
Default config.yml
# PingTab v1.3.0
# AutoUpdate: Enable/Disable auto update checking
AutoUpdate: true
# AutoDownloadUpdate: Enable/Disable auto downloading new updates, when disabled warns
# you about new versions
AutoDownloadUpdate: false
# Interval: Ping Measurement interval in seconds
Interval: 3
# DisableTab: Disable the tab portion of the plugin.
DisableTab: false
# ShowPluginNameOnMessages: Show the plugin name on messages sent to the players
# and console. Please leave this option enabled so
# more people will know about this plugin!
ShowPluginNameOnMessages: false
# ColoredPingParameter: Make the %ping parameter on messages to be automatically
# colored based on it's value.
ColoredPingParameter: true
# GoodPing: Pings below this number will be printed as green in the /ping command.
GoodPing: 200
# MediumPing: Pings below this number will be printed as gold in the /ping command.
# If the ping gets over this number, it will be printed in red .
MediumPing: 500
# OwnPingMessage: Message that is sent to the player when he check it's own
# ping with /ping. Color codes are supported using & character.
# Parameters: %ping - Ping Measured
OwnPingMessage: "Yourpingis%pingms"
# PingMessage: Message that is sent to player when he check anothe player's
# ping with /ping. Color codes are supported using & character.
# Parameters: %playername - Player Name
# %ping - Ping Measured
PingMessage: "%playername'spingis%pingms"
# AlertPlayers: Alert players about high latency (Default: true)
AlertPlayers: true
# AlertThreshold: Players with the ping higher than this will be alerted.
AlertThreshold: 1000
# AlertInterval: The interval, in minutes, for the alerts to be sent.
AlertInterval: 5
# AlertMessage: The message that will be sent to the user on the alert event.
# Color codes are supported using & character.
# Parameters: %playername - Player Name
# %ping - Ping Measured
# %threshold - Threshold Set
AlertMessage: "%playername,yourlatencyof%pingisabove%threshold!"
Permissions
This plugin supports the following permissions:
Permission Nodes
- pingtab.* - Allow all users to use all commands
- pingtab.default - Default configuration
- pingtab.showscoreboard - Allow a user to see the PingTab scoreboard
- pingtab.ping - Allow a user to use the /ping command
- pingtab - Allow a user to use the /pingtab command
- pingtab.reload - Allow a user to use the /pingtab reload command
- pingtab.checkupdate - Allow a user to use the /pingtab checkupdate command
- pingtab.update - Allow a user to use the /pingtab update command
Default Permissions
- pingtab: Anyone
- pingtab.showscoreboard: Anyone
- pingtab.ping: Anyone
- pingtab.reload: Op only
- pingtab.checkupdate: Op only
- pingtab.update: Op only
Current Features
- Shows latency on the tablist
- Support for colored names (This means that if you use a plugin to make the names colored it will work just fine)
- /ping [player|self|list] command
- /pingtab reload command
- High latency alerts
- MCStats
- Permissions
Planned Features
- Autokick based on measured latency
- List players on tab based on radius and or limits for big servers
- List players order by own faction, enemy factions, other factions and lonewolves
- Messages of high latency on PvP
- Broadcast players with high ping
- Werewolves plugin support (there are some glitches when using this plugin)
Uninstalling
- Remove the jar from the plugins folder
- Restart the server
- Type /scoreboard objectives to clean the scoreboard
Review
A Review by VariationVault
Won't Work
- Configurable and colored measures: Unfortunately that isn't possible at the moment.
- ICMP latency measurements: Java doesn't support ICMP, there's a workaround but it too messy.
MCStats
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and/or sent to mcstats.org:
The following data is read from the server in some way or another:
- File Contents of plugins/Plugin Metrics/config.yml (created if not existent)
- Players currently online (not max player count)
- Server version string (the same version string you see in /version)
- Plugin version of the metrics-supported plugin
- Mineshafter status - it does not properly propagate Metrics requests however it is a very simple check and does not read the filesystem
The following data is sent to :
- Metrics revision of the implementing class
- Server's GUID
- System Architeture
- Players currently online (not max player count)
- Server version string (the same version string you see in /version)
- Plugin version of the metrics-supported plugin
- Minecraft Server Mod
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.

Feature Request and Bug Reports
Feel free to PM me with any other feature needed, bugs should be reported in the comments section on bukkit.org.
Source Code
You can get the source here. Just give the credits
Donations
If you like this plugin, feel free to donate, my kids will appreciate that!
评论 0
登录后参与评分
还没有评论,来抢沙发吧