排名
统计你的方块数量并获取排名!
信息
如果您遇到任何问题,请提交工单!
概述:
该插件会统计玩家进行的多种行为,并在网站上显示这些数据:
玩家可以跨服务器独立追踪自己的统计数据,并在更广泛的层面上进行竞争。随后,玩家可以使用该网站展示其作品集以及工作/经验证明!
玩家可以在游戏中通过命令 "/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
评论 0
登录后参与评分
还没有评论,来抢沙发吧