Sky Banker
一款为 Paper 服务器设计的银行插件,灵感源自 Hypixel SkyBlock。玩家可以通过简洁易用的 GUI 存取金币、解锁更高级别的银行账户、赚取储蓄利息,并查看完整的交易记录。该插件可通过 config.yml 和 messages.yml 进行完全自定义配置。
✨ 功能特性
- 个人银行账户:支持存款/取款及升级菜单。
- 7 种可升级账户等级:从免费的初始账户开始,逐步提升至豪华账户。每个等级都有各自的余额上限和利息上限。
- 基于交易的利息:存入银行的金币每 31 小时自动产生利息。此间隔可在配置文件中修改,利息会自动计算。玩家还可以在物品描述(lore)中查看预计利息。
- 自定义金额输入:使用“特定金额”选项直接输入任意数额,支持
1k、1.5m 和 2b 等快捷简写格式。
- 交易历史记录:保存每位玩家最近的 20 笔存款、取款和利息发放记录,包括交易类型、金额和时间戳。
- 排行榜与排名查询:使用
/skybanker top 查看最富有的前 10 个账户,或使用 /skybanker user <player> 查询玩家的排名。
- PlaceholderAPI 支持:提供 9 个占位符,用于显示余额、钱包、账户等级、利息计时器等数据。
? 依赖要求
- -------------------------------------------------------------
- 依赖项
- Vault — 必需,提供经济后端支持
- EssentialsX — 必需,通过 Vault 为该插件提供经济系统支持。
- PlaceholderAPI — 可选,启用下方列出的占位符列表
- --------------------------------------------------------------
? 命令
| 命令 |
描述 |
权限 |
/bank |
打开你的个人银行菜单。 |
bank.use |
/skybanker 或 /sb |
显示可用命令列表。 |
bank.use |
/skybanker top |
显示财富排名前 10 的银行账户。 |
bank.use |
/skybanker user [player] |
显示你自己或其他玩家的排名。 |
bank.use |
/skybanker placeholder |
列出所有可用的占位符。 |
skybanker.admin |
/skybanker reload <config.yml|message.yml|all> |
重载单个配置文件或所有配置文件。 |
skybanker.admin |
/sb 是 /skybanker 的完整别名,两个命令的功能完全相同。
? 权限
| 权限 |
默认值 |
描述 |
bank.use |
true |
允许使用 /bank、/skybanker 和 /sb。 |
skybanker.admin |
op |
允许使用重载子命令。 |
?️ 占位符
这些占位符需要 PlaceholderAPI。你可以使用以下命令进行测试:
/papi parse <player> <placeholder>
| 占位符 |
描述 |
%skybanker_balance% |
显示玩家当前的银行余额。 |
%skybanker_purse% |
通过 Vault 显示玩家的钱包余额。 |
%skybanker_limit% |
显示当前账户等级允许的最大余额。 |
%skybanker_level% |
显示玩家当前的账户等级,范围为 1 到 7。 |
%skybanker_account% |
显示玩家当前账户等级的名称,例如 Gold Account。 |
%skybanker_interest_timer% |
显示距离下次发放利息的剩余时间。 |
%skybanker_next_upgrade_cost% |
显示下一次账户升级的费用,如果玩家已达到最高等级则显示 MAX。 |
%skybanker_space_left% |
显示在达到银行限额之前还可以存入多少金币。 |
%skybanker_progress% |
显示当前银行余额上限的填充百分比。 |
⚙️ 配置
该插件高度可定制,你无需修改代码即可更改其外观和行为。
config.yml 文件允许你自定义以下内容:
- 菜单标题、大小和项目位置。
- 每个菜单项的材质、显示名称和描述文本(lore)。
- 占位符,如
%balance%、%limit% 和 %account%。
- 全部七种账户等级,包括升级费用、余额上限、利息上限和描述文本。
- 输入自定义金额时,告示牌编辑器中显示的默认文本。
- 利息间隔、交易历史记录长度以及快速取款比例。
所有展示给玩家的提示信息,包括成功消息、错误消息和升级通知,均存储在 messages.yml 中。
消息文件支持 & 颜色代码和 \n 用于多行消息。
? 开发依赖
本插件使用以下 API 和库构建:
Sky Banker
A bank plugin for Paper servers inspired by Hypixel SkyBlock. Players can deposit and withdraw coins through a clean and easy to use GUI, unlock higher-tier bank accounts, earn interest on their savings, and view their complete transaction history. The plugin is fully customizable using config.yml and messages.yml.
✨ Features
- Personal bank account : Deposit/withdrawal and upgrade-menu.
- 7 Upgradaable account tiers : Start with a free starter account and work your way up to the palatial account, Each tier has its own balance limit and interest cap.
- Transactions based interest : Coins stored in the bank automatically earn interest every 31 hours. This interval can be changed in the configuration, and the interest is calculated automatically. Players can also view their projected interest in the information lore.
- Custom amount input : Use the “ Specific Amount ” option to enter any amount directly, with support for shortcuts such as
1k, 1.5m, and 2b.
- Transaction history : The last 20 deposits, withdrawals, and interest payouts are saved for each player, including the transaction type, amount, and timestamp.
- Leaderboard and rank lookup : Use
/skybanker top to view the top 10 richest accounts, or use /skybanker user <player> to check player’s rank.
- PlaceholderAPI Support : Includes 9 placeholders for balance, purse, account tier, interest timer, and more.
? Requirements
- -------------------------------------------------------------
- Dependency
- Vault — Required provides the economy backend
- EssentialsX — Required Provides the economy used by the plugin through Vault.
- PlaceholderAPI — Optional enables the placeholder list below
- --------------------------------------------------------------
? Commands
| Command |
Description |
Permission |
/bank |
Opens your personal bank menu. |
bank.use |
/skybanker or /sb |
Displays the available commands. |
bank.use |
/skybanker top |
Shows the 10 richest bank accounts. |
bank.use |
/skybanker user [player] |
Shows your rank or another player’s rank. |
bank.use |
/skybanker placeholder |
Lists all available placeholders. |
skybanker.admin |
/skybanker reload <config.yml|message.yml|all> |
Reloads one configuration file or all configuration files. |
skybanker.admin |
/sb is a full alias for /skybanker, and both commands work the same way.
? Permissions
| Permission |
Default |
Description |
bank.use |
true |
Allows access to /bank, /skybanker, and /sb. |
skybanker.admin |
op |
Allows access to the reload subcommand. |
?️ Placeholders
These placeholders require PlaceholderAPI. You can test them using:
/papi parse <player> <placeholder>
| Placeholder |
Description |
%skybanker_balance% |
Displays the player’s current bank balance. |
%skybanker_purse% |
Displays the player’s purse or wallet balance through Vault. |
%skybanker_limit% |
Displays the maximum balance allowed by the player’s current account tier. |
%skybanker_level% |
Displays the player’s current account tier, from 1 to 7. |
%skybanker_account% |
Displays the name of the player’s current account tier, such as Gold Account. |
%skybanker_interest_timer% |
Displays the time remaining until the next interest payout. |
%skybanker_next_upgrade_cost% |
Displays the cost of the next account upgrade, or MAX if the player has reached the highest tier. |
%skybanker_space_left% |
Displays how many coins can still be deposited before reaching the bank limit. |
%skybanker_progress% |
Displays the percentage of the bank balance limit currently filled. |
⚙️ Configuration
The plugin is highly customizable, and you can change its appearance and behavior without modifying the code.
The config.yml file allows you to customize:
- Menu titles, sizes, and item positions.
- The material, display name, and lore of every menu item.
- Placeholders such as
%balance%, %limit%, and %account%.
- All seven account tiers, including their upgrade cost, balance limit, interest limit, and lore.
- The default text shown in the sign editor when entering a custom amount.
- The interest interval, transaction history length, and quick-withdraw percentages.
All messages shown to players, including success messages, error messages, and upgrade notifications, are stored in messages.yml.
The message file supports & color codes and \n for multi-line messages.
? Built With
This plugin was built using the following APIs and libraries:
- Vault — Connects the plugin to the server’s economy system.
- PlaceholderAPI — Adds optional support for placeholders in other plugins.
评论 0
登录后参与评分
还没有评论,来抢沙发吧