排名
统计你的方块数量并获取排名!
信息
如果您遇到任何问题,请提交工单!
概述:
该插件会统计玩家进行的多种行为,并在网站上显示这些数据:
玩家可以跨服务器独立追踪自己的统计数据,并在更广泛的层面上进行竞争。随后,玩家可以使用该网站展示其作品集以及工作/经验证明!
玩家可以在游戏中通过命令 "/ranks" 查看自己的统计数据。
您可以在 locale.dat 中更改和本地化插件的所有输出内容
若要添加带有您名字的告示牌:
- 第 0 行:[Ranks]
- 第 1 行:yourname
- 第 2 行:将显示为 Block-Break(破坏方块数)
- 第 3 行:将显示为 Block-Place(放置方块数)
![]()
配置
所有插件设置均可在 config.yml 中进行配置。
以下是版本 2.1.11 的默认配置:
#Bukkit 会在您修改某些内容时删除注释,此处为默认配置! #是否启用插件? enabled: true#启用统计追踪 #如果设为 false,此插件将毫无用处! stats-tracking: true #自动更新插件。旧版本将在一段时间后不再受支持! auto-update: true #如果您希望向我提供使用信息,请启用此项。这对插件本身没有影响! enable-metrics: true
#打印可选数据 verbose: false #打印调试信息 debug: false
#在此选择您的存储方法 #推荐使用 MySQL,如果设为 false,则将使用 sqlite! Use MySQL: false
如果使用了这里,你可以设置你的 MySQL 登录信息! MySQL: MySQL-Database: DB MySQL-Hostname: localhost MySQL-User: user MySQL-Password: pw
你可以在下图中看到插件如何解释此配置:
![]()
统计追踪
该插件依赖于追踪你的数据。我想让这个过程尽可能透明!
在下面你可以找到我将追踪的所有内容及其用途。如果你有任何问题,欢迎私信我!
所有公开可见的数据都可以在 查看,在那里你可以看到你的数据将如何显示!如果你在 config.yml 中将 enabled 或 stats-tracking 设置为 false,我的插件将不会追踪任何数据!
| Name | Since Version | Used for | visibility |
|---|---|---|---|
| Server IP | 2.0.1 | Fraud protection | private |
| Broken blocks per Player and Block type | 2.0.1 | Stats tracking | public |
| Placed blocks per Player and Block type | 2.0.1 | Stats tracking | public |
| Online Players | 2.0.3 | Stats tracking online time | public |
| Plugin Version (server<->BukkitDev) | 2.0.3 | Update Checking | on your server |
| Player Movement | 2.0.4 | Stats tracking Blocks walked | public |
| Experience gained per Player | 2.0.4 | Stats tracking | public |
| Downloading newest ranking | 2.0.5 | Ingame commands | on your server |
| Killed entities per Player | 2.1.15 | Stats tracking | public |
| Damaged entities per Player | 2.1.15 | Stats tracking | public |
性能
SQLite 本质上比 MySQL 慢得多,所以如果你的服务器有很多玩家,你应该考虑使用 MySQL!
我的插件需要追踪你服务器上发生的许多事件。它还需要上传所有这些数据。如果实现不当(例如在主线程中进行 I/O 操作等),这项任务可能会带来许多性能问题。我正在努力创建一个插件,在任何情况下都不会影响你运行它的服务器的性能。但可能会有我没有想到的情况,所以如果你的服务器对我的插件有问题,请提交一个工单说明问题。
请放心,Bukkit 主线程上不会进行任何网络通信,并且统计数据高度缓存,因此它们在服务器上查看之前需要一些时间是正常的。
插件指标
此外,从 2.1.1 版本开始,将包含 PluginMetrics。通过 Metrics 收集的数据可以在 查看,并且你始终可以通过在 config.yml 中将 enable-metrics 更改为 false 来选择退出!
Metics 确切读取/发送了什么?(摘自 metrics 网站)
Metics 无法以任何方式控制插件,除了插件作者实现的特定于插件的代码。 没有下载任何东西,所以你得到的是插件作者实现的内容。
以下数据以某种方式从服务器读取:
- plugins/Plugin Metrics/config.yml 的文件内容(如果不存在则创建)
- 当前在线玩家数量(不是最大玩家数量)
- 服务器版本字符串(你在 /version 中看到的相同版本字符串)
- 支持 metrics 的插件的版本
- Mineshafter 状态 - 它不能正确传播 Metrics 请求,但它是一个非常简单的检查,并且不读取文件系统
以下数据发送到 :
- 实现类的 Metrics 修订版
- 服务器的 GUID
- 当前在线玩家数量(不是最大玩家数量)
- 服务器版本字符串(你在 /version 中看到的相同版本字符串)
- 支持 metrics 的插件的版本
- 支持插件实现的任何自定义数据。这是可变的,我不对此负责,但通常只是特定于插件的数据(例如对于 LWC,数据库类型:MySQL 或 SQLite,以及使用的语言环境(英语、德语))。
更新检查:
该插件将自动检查更新并保持你的版本最新。 你可以在配置中通过将 auto-update 设置为 false 来禁用此功能。 但由于 api 功能会发生变化,一段时间后,旧版本将不再工作!所以请更新!
展望未来
如果你不喜欢这个变化,继续下载我的 1.1.0 版本,你将拥有我的插件的最后一个离线版本。
这一更改是系列重大更新中的第一步!我曾表示,我希望这个插件更侧重于统计/排名功能,而不仅仅是简单的方块计数。你的排名现在已独立于服务器!此外,我还会追踪更多数据,例如击杀数、死亡数、行走距离、经验值收集量、物品制作数量、掉落物拾取量等。我认为有许多值得统计的内容。服务器管理员可以根据玩家的排名高低给予奖励或权限。
功能:
- 统计多项数据
- 基于所有玩家动态计算分数
- 启动时自动检查更新!
- 玩家可在游戏内查看自己的分数
- 你可以放置告示牌,向路过的所有玩家展示你的排名
待办事项:
- 提升自定义等级(并获得相应奖励)
- 添加更多追踪项
- 全面改版网站以获取详细统计数据!
已知问题:
目前暂无
Ranks
Count your blocks and get ranks!
Info
Please post a ticket, if you encounter any issue!
Overview:
This plugin will count many things, your players are doing and display them on a website:
Players can track their stats server-independent and can compete on a more global level. Later on, players can use the site to show it as a portfolio and proof of work/experience!
Players can view their statistics ingame with "/ranks".
You can change and localize all output of the plugin in locale.dat
For adding a sign with your name:
- Line 0:[Ranks]
- Line 1:yourname
- Line 2:Will be Block-Break
- Line 3:Will be Block-Place
![]()
Configuration
All plugin settings can be configured in config.yml.
Here is the default configuration as of Version 2.1.11:
#Bukkit deletes comments if you change something, this it the default-configuration! #enable the plugin? enabled: true#enable stats-tracking #if false, this renders the plugin useless! stats-tracking: true #auto-updates the plugin. Old versions will not be supported after some time! auto-update: true #if you prefer to give me usage-informations, please enable this. Has no effect on the plugin! enable-metrics: true
#prints out optional data verbose: false #prints out debugging informations debug: false
#here you can select your method of storage #MySQL is prefered, if false, sqlite will be used! Use MySQL: false
#If used, here you can set your mysql-login! MySQL: MySQL-Database: DB MySQL-Hostname: localhost MySQL-User: user MySQL-Password: pw
You can see how the plugin interprets this configuration in the image below:
![]()
Stats tracking
This plugin depends on tracking your data. And i want to make this process as transparent as possible!
Below you can find all things i will track and for what they are used. If you have any question, feel free to drop me a pm!
All public view-able data can be seen at and there you can see, how your data will be displayed! If you have set enabled or stats-tracking to false in the config.yml nothing will be tracked by my plugin!
| Name | Since Version | Used for | visibility |
|---|---|---|---|
| Server IP | 2.0.1 | Fraud protection | private |
| Broken blocks per Player and Block type | 2.0.1 | Stats tracking | public |
| Placed blocks per Player and Block type | 2.0.1 | Stats tracking | public |
| Online Players | 2.0.3 | Stats tracking online time | public |
| Plugin Version (server<->BukkitDev) | 2.0.3 | Update Checking | on your server |
| Player Movement | 2.0.4 | Stats tracking Blocks walked | public |
| Experience gained per Player | 2.0.4 | Stats tracking | public |
| Downloading newest ranking | 2.0.5 | Ingame commands | on your server |
| Killed entities per Player | 2.1.15 | Stats tracking | public |
| Damaged entities per Player | 2.1.15 | Stats tracking | public |
Performance
SQLite in its nature is much slower than MySQL, so if you have a server with many players, you should consider using MySQL!
My plugin has to track many events that are happening on your server. It also has to upload all this data. This task can bring in many performance issues if implemented poorly (I/O in main thread etc.). I am trying to create a plugin, that in no way will impact the performance of any server you run it on. But there will be things i did not thought about, so if your server has issues with my plugin, please post a ticket explaining the problem.
Rest assured, that no networking is done on the Bukkit main thread and stats are highly cached, so it is normal for them to take some time, until they are viewed on the server.
Plugin Metrics
Also, beginning with version 2.1.1 there will be PluginMetrics included. The data collected by Metrics can be viewed at and you can always opt-out by changing enable-metrics to false in config.yml!
What is exactly read/sent by Metrics? (Copy from the metrics website)
It is not possible for Metrics to control the plugin in any way except for plugin-specific code the plugin author implements. Nothing is downloaded, so what you get is what the plugin author implemented.
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
- 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
- Any custom data the supporting plugin implements. This is variable and I am not responsible for this however usually it is just plugin-specific data (e.g for LWC, the database type: MySQL or SQLite, and Locale used (english, german)).
Update checking:
This plugin will automatically check for updates and keep your version up to date. You can disable this in the config by setting auto-update to false. But since api-features will change, after some time, old versions will not work anymore! So please update!
View on the future
If you dislike this change, go ahead and download my 1.1.0 Release and you have the last offline-version of my plugin.
This change is the first one in a series of bigger changes! I stated, that i want this plugin to be more a stats/ranks-plugin than simple counting of blocks. Your rank is now server-independent! And i will track more things like, kills, deaths, distance walked, exp collected, objects crafted, drops collected etc. I think, there are many things worth counted. And server-owners can give People rewards/permissions based on how high their rank is.
Features:
- Counts several statistics
- Dynamic scoring based on all players
- Will auto-check on startup for new updates!
- Players can view their score ingame
- You can place signs who will display your Rank to all Players passing by
ToDo:
- Rise custom levels (and get something from it)
- Add new things to track
- Overhaul Website to get detailed statistics!
KnownIssues:
none of today
下载 Rank
下载 Rank
下载 Rank
下载 Rank
下载 Rank
下载 Rank
下载 Rank
下载 Rank
下载 Rank
下载 Rank
请注意,本版本中我使用了连接到我的网站的连接功能!
更新日志:
- v2.2.3:
- 终于添加了击杀数和伤害统计(之前已记录,现在将上传!)
- v2.2.2:
- 为测试目的添加了新的告示牌语法 [Username]
- 更多 SQLite 修复!
- v2.2.0:
- 修复了大量小问题!
- 现在运行应该非常流畅!
- v2.1.17:
- 调整了启动时的一些设置!现在对离线模式的支持更好!
- v2.1.16:
- 重构了自动更新器,以更好地检查正确版本并仅更新到新版本,使我能够发送开发构建而不会在服务器启动时丢失它们!
- v2.1.15:
- 添加了两个新统计项:造成伤害和被杀死的生物数量
- v2.1.14:
- 将流量重定向到
- v2.1.13:
- 更改了数据库更新的执行方式,大幅减少了线程数。这应该能解决大多数 SQLite 用户的问题!
- v2.1.12:
- 修复了 SQLite 中的一个严重错误。
- v2.1.11:
- 我添加了两个新的配置选项,帮助我进行调试。它们不改变任何功能,但在出错时我会获得有用的信息。无需任何操作!
- v2.1.10:
- 添加了提交统计数据的新规范,即将停止对旧版本插件的支持!
- v2.1.9:
- 调整了 McStats 的启动时间以减少启动卡顿!
- 兼容 Beta R0.3
- v2.1.8:
- 修复了排名前十功能中的一个严重错误!
- 优化了指标输出!
- v2.1.7:
- 将命令改为异步执行,不再导致服务器卡顿,而是命令响应时间变慢。如果这令您困扰,请使用 MySQL!
- v2.1.6:
- 在使用 SQLite 时将部分数据库调用改为异步,这将减少在缓慢文件系统上的卡顿!
- v2.1.5:
- 将配置文件更改为符合最新规则。如果您不在意,可以继续使用旧配置文件!
- v2.1.4:
- 在插件配置中添加了一个开关以关闭自动更新!
- v2.1.3:
- 更多关于指标的 bug 修复!
- 修复了在 /reload 时 SQLite 损坏的 bug
- v2.1.2:
- 指标和 SQLite 的一些 bug 修复
- v2.1.1:
- 添加了插件指标!
- 修复了在使用 SQLite 时 /ranks 导致异常的 bug!
- v2.1.0:
- 添加了 sqlite 支持(如果未启用 mysql)!
- 修复了 mysql 表创建中的 bug!如果在启动时遇到错误,请手动删除 `Ranks_users` 表
- 使同步更加方便!
- v2.0.5:
- 现在开始计算获得的经验值
- 现在开始计算移动距离
- v2.0.4:
- 现在开始计算在线时长
- v2.0.3:
- 所有功能均已实现!
- 告示牌正常工作!
- 命令正常工作!
- 暂时移除了基于经验的限制!
- 移除了更新器并实现了 Gravity 的更新器!
- 插件现在将在有新版本时自动更新!
- v2.0.1:
- 为每个玩家添加了全局记分板:
- 请反馈其运行情况(性能等)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。

评论 0
登录后参与评分
还没有评论,来抢沙发吧