PingTab

插件

· 作者 _ForgeUser2642394

在标签页列表中显示玩家的延迟

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

最新 PingTab v1.3.5 · 1.8.3

一键开服(送7天)

PingTab Logo

在 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")
    • 参数:
      • %ping - 测得的延迟
  • 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
  • 权限系统
    • SuperPerms

计划功能

  • 基于测量的延迟自动踢出玩家
  • 根据半径或限制列出大服务器上的玩家列表
  • 按自己的阵营、敌对阵营、其他阵营和独行侠排序列出玩家
  • 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 来退出此服务。

MCStats

功能请求与错误报告

如有其他需要的功能,欢迎私信我;错误应在 bukkit.org 的评论区报告。

源代码

你可以在此处获取源代码 这里。只需注明出处即可。

捐赠

如果你喜欢这个插件,欢迎捐赠,我的孩子们会很感激!

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源