VaultSlim
VaultSlim 是 Vault 的轻量级现代化替代品,专为希望使用 Vault API 而不愿携带多年过时集成和多余开销的服务端打造。
它保留了熟悉的 Vault API 和包结构,因此使用 Vault 的插件可以继续正常工作,无需进行代码更改。
为什么选择 VaultSlim?
原始的 Vault 仍然包含对数十种旧版权限和聊天插件的集成,而这些插件对于大多数现代服务端来说已不再相关。
VaultSlim 移除了这些遗留代码,仅保留真正重要的部分:现代经济、权限和聊天插件所使用的 API 和服务层。
已移除的内容
- 针对过时插件的旧版权限和聊天实现
- 旧的更新检查逻辑
- 不必要的指标统计和集成代码
- 其他现代服务端不再需要的历史代码
VaultSlim 提供的功能
- 即插即用的 Vault 替代方案
- 兼容 Vault API
- 支持任何暴露标准 Vault Economy API 的经济插件
- 支持现代权限/聊天提供者,如 LuckPerms
- 内置 PlaceholderAPI 集成
- 轻量级的启动和运行时行为
- 当安装多个 Vault 提供者时,支持显式选择提供者
内置 PlaceholderAPI 支持
VaultSlim 包含了其自身的 Vault PlaceholderAPI 扩展,因此不需要单独的 Vault 扩展。
示例:
%vault_eco_balance%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_2dp%
%vault_prefix%
%vault_suffix%
%vault_group%
%vault_groups%
数值占位符采用无分配解析实现,并针对频繁求值的占位符进行了专门优化。
安装
- 停止服务器。
- 移除原有的
Vault.jar 和 PlaceholderAPI/expansions/Expansion-vault.jar。
- 添加
VaultSlim.jar。
- 启动服务器。
不要同时安装 Vault 和 VaultSlim。
插件应继续通过正常 API 访问 Vault 服务:
RegisteredServiceProvider<Economy> registration =
Bukkit.getServicesManager().getRegistration(Economy.class);
Economy economy = registration.getProvider();
无需进行任何与 Vault 特定的代码更改。
理念
VaultSlim 并不试图重新发明 Vault。
它只是保留了有用的 API,并移除了在现代 Minecraft 服务端上不再合理的部分。
相同的 API。更少的遗留代码。
VaultSlim
VaultSlim is a lightweight, modern replacement for Vault, built for servers that want the Vault API without carrying around years of obsolete integrations and unnecessary overhead.
It keeps the familiar Vault API and package structure, so plugins using Vault can continue working without requiring code changes.
Why VaultSlim?
The original Vault still contains integrations for dozens of old permission and chat plugins that are no longer relevant to most modern servers.
VaultSlim removes that legacy code and keeps the part that actually matters: the API and service layer used by modern economy, permissions and chat plugins.
What was removed
- Legacy permission and chat implementations for outdated plugins
- Old update-checking logic
- Unnecessary metrics and integration code
- Other historical code that modern servers no longer need
What VaultSlim provides
- Drop-in Vault replacement
- Vault API compatibility
- Support for any economy plugin exposing the standard Vault Economy API
- Support for modern permission/chat providers such as LuckPerms
- Built-in PlaceholderAPI integration
- Lightweight startup and runtime behavior
- Explicit provider selection when multiple Vault providers are installed
Built-in PlaceholderAPI support
VaultSlim includes its own Vault PlaceholderAPI expansion, so a separate Vault expansion is not required.
Examples:
%vault_eco_balance%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_2dp%
%vault_prefix%
%vault_suffix%
%vault_group%
%vault_groups%
Numeric placeholders are implemented using allocation-free parsing and optimized specifically for frequently evaluated placeholders.
Installation
- Stop the server.
- Remove the original
Vault.jar and PlaceholderAPI/expansions/Expansion-vault.jar.
- Add
VaultSlim.jar.
- Start the server.
Do not install Vault and VaultSlim at the same time.
Plugins should continue accessing Vault services through the normal API:
RegisteredServiceProvider<Economy> registration =
Bukkit.getServicesManager().getRegistration(Economy.class);
Economy economy = registration.getProvider();
No Vault-specific code changes are required.
Philosophy
VaultSlim does not try to reinvent Vault.
It simply keeps the useful API and removes the parts that no longer make sense on a modern Minecraft server.
Same API. Less legacy code.
评论 0
登录后参与评分
还没有评论,来抢沙发吧