Statify - 简单正确地获取 Minecraft 统计数据
更新 4/10:Statify 2 将于 2024 年夏季推出,具备更好的自动补全、更少的 bug 和更多好评!
你好!我是 @quantumbagel,这是我的第一个插件——Statify。它是一个小巧(<50kb)、资源效率高且功能强大的服务端插件,用于获取单个玩家或整个服务器的统计数据。
为什么我需要这个?
如果你想要一种在整个服务器中聚合统计数据的方法(而不仅仅是通过单个玩家的“统计”菜单),此插件可以轻松实现数据的可视化。
优缺点
以下是该插件的优缺点列表(这并非一个完美的插件)
优点
- 允许复杂查询(
killed:zombie+killed:skeleton、(killed:zombie+killed:skeleton)^custom:beds_broken,甚至 tan(killed:zombie) + killed:skeleton)
- 对特定玩家在各类别中的排名
- 能够创建并将复杂查询保存为简写形式
- 是的,确实有一个递归检测器
缺点
- 没有自动补全功能,你必须了解 MC 统计数据的大致结构(如需优秀指南,请查看 )
- 这是我的第一个插件,因此可能存在大量 bug 和故障
- 在离线模式(盗版 Minecraft)下运行不佳,因为可能存在重复的用户名
- 不支持多线程
- 没有自定义命令的合理性检查
- 处理极大数字时存在 bug >:(
这是一个 Bukkit 插件,请将 .jar 文件放入你的 Spigot/Bukkit/CraftBukkit 服务器的 plugins 文件夹中。
我该如何使用这些命令?
注意:[description] 不是必需的,等号后面的是默认值,<description> 是必需的
/leaderboard, /lb
格式:
/leaderboard [top entries number]=10 <complex expression>
示例:
/lb killed:zombie (请求前 10 名玩家击杀僵尸的数据)
/lb 5 killed:zombie (请求前 5 名玩家击杀僵尸的数据)
/lb killed:total (请求“killed”类别总和最高的玩家数据(即最多的实体击杀数))
/lb APlayerOfMinecraft:kd(APlayerOfMinecraft 是用户名,kd 是用户自定义的命令(在本例中为击杀差值))
/lb killed:zombie + APlayerOfMinecraft:kd(你可以将两者结合使用,将这些统计数据作为数值处理)
/lb killed:zombie * APlayerOfMinecraft:kd + custom:walk_one_cm
/stat
格式:
/stat [用户名]=<发送命令的玩家> <类别> [显示的前几名数量]=10
示例
/stat killed(返回发送消息的玩家在“killed”类别中的前 10 名排名)
/stat killed 5(返回发送消息的玩家在“killed”类别中的前 10 名排名)
/stat APlayerOfMinecraft killed(返回玩家“APlayerOfMinecraft”在“killed”类别中的前 10 名排名)
/stat APlayerOfMinecraft killed 5(返回玩家“APlayerOfMinecraft”在“killed”类别中的前 5 名排名)
/custom
格式:
/custom set <命令名称> <复杂表达式>
/custom list [用户名]=<发送者玩家>
/custom get [username]=<发送命令的玩家> <命令名称>
/custom delete <命令名称>
示例
/custom set kd killed:total-killed_by:total(将发送命令的玩家的自定义命令“kd”设置为“killed:total-killed_by:total”。如果玩家的名字是“APlayerOfMinecraft”,则可以像上面的 /leaderboard 示例一样引用它。)
/custom list(列出当前玩家定义的命令)
/custom list APlayerOfMinecraft(列出玩家“APlayerOfMinecraft”的定义属性)
/custom get kd(打印当前玩家自定义属性 kd 的当前定义)
/custom get APlayerOfMinecraft kd(打印玩家“APlayerOfMinecraft”的自定义属性 kd 的当前定义)
/custom delete kd(删除当前玩家的命令 kd,如果已定义)
/playerrank
格式
/playerrank [排名前N的条目数量]=10
示例
/playerrank(使用我现场编造的 PlayerScore 算法列出服务器上前 10 名玩家)
/playerrank 5(列出服务器前 5 名玩家)
以上就是全部内容——希望你喜欢这个小小的插件!
Statify - Simple Minecraft Stats Done Right
UPDATE 4/10: Statify 2 is coming Summer 2024 with better autocomplete, less bugs, and good karma!
Hi! I'm @quantumbagel, and this is my first plugin - Statify. It's a tiny (<50kb), resource-efficient, and powerful serverside plugin to get stats for one player - or the entire server.
Why do I need this?
If you want a way to aggregate stats throughout the server (not just through the Statistics menu for one player - this plugin allows easy visualization of stats.
Pros/Cons
Here's a list of pros and cons of this plugin (this isn't a perfect plugin)
Pros
- Complex queries allowed (
killed:zombie+killed:skeleton, (killed:zombie+killed:skeleton)^custom:beds_broken, or even tan(killed:zombie) + killed:skeleton)
- Ranking of individual categories for a certain player
- Ability to create and save complex queries under a shorthand
- Yes, there is a recursion detector
Cons
- No autocomplete, you have to know the general layout of MC stats (for an excellent guide, check )
- My first plugin, so there are probably copious quantities of bugs and glitches
- Doesn't work well with offline-mode (cracked Minecraft) because of the possibility of duplicate usernames
- No multithreading
- No custom command sanity checks
- Bugginess with really big numbers >:(
This is a Bukkit plugin, so put the .jar in the
plugins folder of your Spigot/Bukkit/CraftBukkit server.
How do I even use these commands?
NB: [description] is NOT REQUIRED, equals sign after is DEFAULT VALUE, <description> IS REQUIRED
/leaderboard, /lb
Format:
/leaderboard [number of top entries]=10 <complex expression>
Examples:
/lb killed:zombie (A simple request for the top 10 player zombie kills)
/lb 5 killed:zombie (A request for the top 5 player zombie kills)
/lb killed:total (A request for the player with the highest sum of the "killed" category (most entity kills))
/lb APlayerOfMinecraft:kd (APlayerOfMinecraft is username, kd is custom command that user defined (in this case kill differential))
/lb killed:zombie + APlayerOfMinecraft:kd (You can use both in conjunction using these stats as numbers)
/lb killed:zombie * APlayerOfMinecraft:kd + custom:walk_one_cm
/stat
Format:
/stat [username]=<player who is sending> <category> [number of top entries]=10
Examples
/stat killed (returns top 10 ranking of the "killed" category for the player who sent the message)
/stat killed 5 (returns top 10 ranking of the "killed" category for the player who sent the message)
/stat APlayerOfMinecraft killed (returns top 10 ranking of the "killed" category of the player "APlayerOfMinecraft")
/stat APlayerOfMinecraft killed 5 (returns top 5 ranking of the "killed" category of the player "APlayerOfMinecraft")
/custom
Format:
/custom set <command name> <complex expression>
/custom list [username]=<player who is sending>
/custom get [username]=<player who is sending> <command name>
/custom delete <command name>
Examples
/custom set kd killed:total-killed_by:total (Set the player who is sending's custom command "kd" to "killed:total-killed_by:total". If the player's name was "APlayerOfMinecraft," this could be referenced the exact same way as the /leaderboard examples above.)
/custom list (List the current player's defined commands)
/custom list APlayerOfMinecraft (List the player "APlayerOfMinecraft"'s defined stats)
/custom get kd (Print the current definition of the custom stat kd for the current player)
/custom get APlayerOfMinecraft kd (Print the current definition of the custom stat kd for the player "APlayerOfMinecraft")
/custom delete kd (Delete the command kd for the current player, if defined)
/playerrank
Format
/playerrank [number of top entries]=10
Examples
/playerrank (List the top 10 players on the server using the PlayerScore algorithm that I made up on the spot)
/playerrank 5 (List the top 5 players on the server)
That's all - I hope you enjoy this little plugin!
评论 0
登录后参与评分
还没有评论,来抢沙发吧