mirror of
https://github.com/layue13/MoonBridge.git
synced 2026-10-25 18:46:18 +00:00
- 可选的 META-INF/moonbridge-plugin.yml(id、version、main、dependencies,可选依赖), 没有描述文件的插件照旧加载 - 加载顺序按依赖图(PluginGraph):依赖先 onLoad/onEnable、后 onDisable;缺少依赖、 依赖未启用、循环依赖、重复 id、描述文件不合法时给出准确原因并启动失败 - PluginClassLoader 在插件 API 与自身之后查找声明的依赖(含传递依赖);只有声明过的依赖可见 - PluginContext.services():每个类型一个提供方,只对提供方和依赖它的插件可见,随停用注销 - PluginContext.plugins():已加载的带描述文件插件(id、版本、依赖) - plugins.enabled 可以用 id 作键;数据目录仍按实现类名,无需迁移 - LuckPerms 平台插件的描述文件 id 为 luckperms,版本在构建时写入 - 文档:docs/plugins.md「依赖其他插件」 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>