YUpdateChecker
开箱即用的插件和数据包更新检查器。无需任何配置。难以置信?没错,确实如此。唯一的限制是它仅适用于从 Modrinth 下载的项目,这要归功于他们出色的 API。
工作原理?
非常简单。插件会对文件(.jar 或 .zip)进行哈希处理,通过 Modrinth API 验证该哈希值并记录结果。是的,就这么简单。Modrinth 负责繁重的工作,他们会为上传的每个文件生成哈希值,并通过其 API 提供查询。唯一的注意事项是——你不能更改已下载的 jar 文件或数据包的内容。也就是说,不能编辑 plugin.yml 或 Minecraft 函数。这就是哈希的工作原理:不同的文件会有不同的哈希值。当然,你可以修改它们,只是插件将无法识别这些更改罢了 ¯\_(ツ)_/¯
补充信息
- 消息内容完全可通过语言文件自定义,支持 PlaceholderAPI 和 MiniMessage
- 命令支持 Tab 补全
- Modrinth API 目前实行 速率限制,每 IP 每分钟 300 次请求。这意味着如果你安装了超多插件/数据包
或者你频繁刷新的检查命令,更新检查可能会稍慢一些。(插件会对你使用的每个 Modrinth 项目发起一次请求)
权限
| Permission |
访问权限 |
yupdatechecker.admin |
/yuc <reload | version> |
yupdatechecker.updates |
/updates |
yupdatechecker.updates.check |
/updates check |
yupdatechecker.updates.show |
/updates show [plugins | datapacks] |
截图
检查更新
查看结果
与其他插件的兼容性
我开发这些插件主要是为了满足个人需求,因此我不会特意去寻找那些可能与我的插件集成得更好的其他插件。但如果你希望本插件与某个特定插件有更好的集成效果,请通过 Discord 或 GitHub 联系我,我会看看能否实现。
对于你认为缺失的功能也是如此。如果某些功能在插件的设计范围内,我大概率会去添加。
许可证
本项目采用 GNU GPLv3 许可证。
YUpdateChecker
Plugin and datapack update checker that works out of the box. No need to configure anything. Too good to be true? Well, yes. The catch is that it works only with projects downloaded from Modrinth, thanks to their awesome API.
How it works?
It's really simple. Plugin hashes a file (.jar or .zip), checks the hash using Modrinth API and logs the results. Yep, that's it. Modrinth is doing the heavy lifting by hashing every single file that is uploaded and then making it available via their API. Only caveat is - you can't change the contents of a downloaded jar or datapack. So no editing plugin.yml or MC functions. That's how hashing works, different file - different hash. I mean, you can change it of course, it just won't be picked by the plugin ¯\_(ツ)_/¯
Additional info
- Messages are fully customizable with a lang file, supporting PlaceholderAPI and MiniMessage
- Commands have tab completions
- Modrinth API is currently rate limited at 300 requests per minute per IP. Which means that an update check may take a little bit longer, if you have wayyy too many plugins/datapacks
or if you spam the check command. (Plugin makes 1 request per every Modrinth project that you use)
Permissions
| Permission |
Access to |
yupdatechecker.admin |
/yuc <reload | version> |
yupdatechecker.updates |
/updates |
yupdatechecker.updates.check |
/updates check |
yupdatechecker.updates.show |
/updates show [plugins | datapacks] |
Media
Checking updates
Looking through results
Integrity with other plugins
I make these plugins for me, according to my needs, meaning, I don't search for every possible plugin that I don't care about, that could be somehow better integrated with mine. But, if you care about better integration between this plugin and some other, then just let me know through Discord or GitHub and I will see what I can do.
Same goes for any features that you think may be missing. If something isn't outside the scope of the plugin, then I'll probably do it.
License
This project uses GNU GPLv3 license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧