Mini Vault
Mini Vault 是一个独立开发的、注重兼容性的 Minecraft Vault 插件分支。它并非官方的 Vault 项目,也与原始的 Vault 维护者没有任何关联。
该项目保留了传统的 net.milkbowl.vault API 命名空间,以便现有的 Bukkit、Spigot 和 Paper 插件能够继续使用其当前的 Vault 导入配置。实现过程正被拆分为多个小型且可测试的阶段进行缩减与维护,其中兼容性优先于激进的重构清理。
Mini Vault 提供的内容
Mini Vault 通过 Bukkit 的 ServicesManager 暴露了传统的 Vault 经济、权限和聊天服务 API。可选的旧版适配器仅在目标插件已启用且其标记类可用时才会被发现。
首个实现阶段引入了一个集中式生命周期注册表,该注册表:
- 在启动期间执行一次性发现操作。
- 响应提供程序插件的启用与禁用事件。
- 响应服务的注册与注销事件。
- 追踪由 Mini Vault 拥有的服务。
- 在提供程序禁用及插件关闭期间注销由 Mini Vault 拥有的服务。
- 避免使用由适配器创建的生命周期监听器和轮询任务。
- 将可选集成中的故障隔离于核心插件之外。
兼容性
兼容性参考标准为 VaultAPI 1.7。以下公共包保持不变:
net.milkbowl.vault.economy
net.milkbowl.vault.permission
net.milkbowl.vault.chat
现有插件应继续针对传统 API 进行编译。Mini Vault 不会有意重命名或移除公共 Vault API 类。
当前源码基于 Spigot 1.13.2 API 构建,并包含了用于支持早期 Bukkit 时代插件的历史适配器。Paper 及更新版本的服务器尚未纳入自动化集成服务器矩阵覆盖范围。在生产部署前,请验证目标服务器与提供程序的组合。
Mini Vault
Mini Vault is an independent, compatibility-focused fork of the Minecraft Vault plugin. It is not the official Vault project and is not affiliated with the original Vault maintainers.
The project keeps the traditional net.milkbowl.vault API namespace so existing Bukkit, Spigot, and Paper plugins can continue using their current Vault imports. The implementation is being reduced and maintained in small, testable stages, with compatibility taking priority over aggressive cleanup.
What Mini Vault provides
Mini Vault exposes the traditional Vault economy, permission, and chat service APIs through Bukkit's ServicesManager. Optional legacy adapters are discovered only when their target plugin is enabled and their marker class is available.
The first implementation stage introduces a central lifecycle registry that:
- Performs discovery once during startup.
- Reacts to provider plugin enable and disable events.
- Reacts to service registration and unregister events.
- Tracks services owned by Mini Vault.
- Unregisters owned services during provider disable and plugin shutdown.
- Avoids adapter-created lifecycle listeners and polling tasks.
- Keeps optional integration failures isolated from the core plugin.
Compatibility
The compatibility reference is VaultAPI 1.7. The following public packages remain unchanged:
net.milkbowl.vault.economy
net.milkbowl.vault.permission
net.milkbowl.vault.chat
Existing plugins should continue compiling against the traditional API. Mini Vault does not intentionally rename or remove the public Vault API classes.
The current source targets the Spigot 1.13.2 API and includes historical adapters for older Bukkit-era plugins. Paper and newer server versions are not yet covered by an automated integration-server matrix. Verify the target server and provider combination before production deployment.
评论 0
登录后参与评分
还没有评论,来抢沙发吧