Bank Lite
你的玩家已经有一个银行了。它是一间堆满双格箱子的房间,没有任何安全措施,在里面找一本附魔书要花上五分钟。Bank 将其替换为单个菜单:物品按标签页分类,金钱和经验值作为余额,所有数据按玩家保存,重启后依然可用。
玩家可以做什么
在标签页中存储物品。 物品银行是一个分页 GUI,容量完全取决于权限。授予 bank.tabs.18,该玩家就拥有 18 个标签页;使用 bank.item.slots.* 来设置每个标签页的格子数量。无需触碰配置文件,你的捐赠者等级就能获得更大的银行空间。
将金钱和经验值存入银行。 两者都有独立的余额,与玩家的背包分开。存取款,完成。支持 Vault,但非必需。
开具支票。 玩家可以将银行账户里的钱变成支票并交给其他人,接收者可以在自己的银行兑现。你可以设置最低和最高金额,以及开具支票的费用。甚至还有支票簿,标有价格,并且可以选择性地限制使用次数。
使用 PIN 码锁定。 开启 Bank.Pin.Enabled,玩家即可设置一个 PIN 码,打开银行时需要输入。对于账号可能被共享、借用或偶尔被盗的服务端来说非常有用。
玩家如何访问
根据你的服务器需求任意选择:/bank 命令、墙上的告示牌、已注册的银行方块,或者是带有 bank-trait 的 Citizens NPC,让玩家与银行家对话。每种方式都可以启用、禁用或限制到特定的银行板块,因此一个告示牌可以直接打开金钱页面,而完整菜单仅通过命令访问。
可修改的内容
几乎所有内容都可以通过 YAML 文件配置:菜单布局(inventories.yml)、用作图标的物品(items.yml)、每条消息(language.yml)、音效,以及一个物品黑名单(如果你切换模式,它也可以作为白名单运行)。甚至 commands.yml 中的命令词和权限节点名称都可以重命名。以下是 config.yml 的一部分示例:
Bank:
Pin:
Enabled: true
Cheques:
Enabled: true
Minimum:
Amount: 1.0
Book:
Enabled: true
Cost: 50.0
命令
| 命令 |
功能 |
/bank |
打开银行 |
/bank money ... |
存取金钱 |
/bank exp ... |
存取经验值 |
/bank cheque ... |
开具和兑现支票 |
/bank admin open <player> |
查看某玩家的银行 |
/bank admin reload |
重载配置 |
完整的命令和权限参考请参见 wiki。
安装
- 将 jar 文件放入
plugins/ 目录并启动一次服务器。
- 停止服务器并编辑
plugins/Bank/ 中生成的文件。
- 再次启动服务器。
数据默认保存到 SQLite,因此无需搭建数据库,也无需先安装其他插件。安装指南 涵盖了详细信息,包括 Citizens 银行家的设置。
兼容性
Spigot、Paper 或 Bukkit,1.13 至最新版本。仅限服务端。可选钩子支持 Vault、Citizens、PlaceholderAPI、MVdWPlaceholderAPI、HeadDatabase、Skript 和 TimeIsMoney;均非必需。
Lite 版与 Premium 版
Lite 是 Bank 的核心完整版。Premium 面向需要共享数据库和上层经济层的服务端。配置文件格式相同,因此后续升级不会丢失任何内容。
| 功能 |
Lite(本页面) |
Premium |
| 物品、金钱和经验值存储 |
是 |
是 |
| 支票和支票簿 |
是 |
是 |
| PIN 码锁定 |
是 |
是 |
| 告示牌、方块、Citizens 银行家 |
是 |
是 |
| SQLite 存储 |
是 |
是 |
| MySQL 和 MongoDB(多服务器) |
否 |
是 |
| 金钱和经验值利息 |
否 |
是 |
| 银行贷款 |
否 |
是 |
| 物品排序 |
否 |
是 |
| 从其他银行插件导入 |
否 |
是 |
/bank top 和 /baltop 排行榜 |
否 |
是 |
SpigotMC 上的 Bank Premium(查看需要免费的 SpigotMC 论坛账号)。
支持
最快的帮助途径是 Discord;那里也欢迎功能请求。wiki 记录了每个配置文件,源代码位于 GitHub。DiamondRushXD 制作了一个视频教程:
指标
Bank Lite 向 bStats 发送匿名统计数据:唯一标识符、Java 版本、在线或离线模式、插件版本、服务器版本、操作系统名称、版本和架构、CPU 核心数、玩家数量以及 Metrics 版本。要在 bStats 配置文件中全局禁用以退出。
Bank Lite
Your players already have a bank. It is a room full of double chests, it has no
security, and finding one enchanted book in it takes five minutes. Bank replaces
that with a single menu: items in tabs, money and XP as balances, everything
saved per player and there again after a restart.
What players can do
Store items in tabs. The item bank is a paged GUI, and capacity is nothing
more than a permission. Grant bank.tabs.18 and that player has 18 tabs; use
bank.item.slots.* to size the slots per tab. Your donor ranks get bigger banks
without you touching a config file.
Keep money and XP in the bank. Both are balances of their own, separate from
the player's pocket. Deposit, withdraw, done. Vault is supported but optional.
Write cheques. A player can turn bank money into a cheque and hand it to
someone, who cashes it at their own bank. You set the minimum and maximum
amounts and what writing one costs. There are even cheque books, priced and
optionally limited to a number of uses.
Lock it with a PIN. Turn on Bank.Pin.Enabled and players set a PIN that is
asked for before their bank opens. Useful on servers where accounts get shared,
borrowed, or occasionally stolen.
How players reach it
However fits your server: the /bank command, a sign on the wall, a registered
bank block, or a Citizens NPC with the bank-trait so players talk to a banker.
Each route can be enabled, disabled, or limited to specific bank sections, so a
sign can open the money page directly while the full menu stays command-only.
How much you can change
Nearly everything is a YAML file: menu layouts (inventories.yml), the items
used as icons (items.yml), every message (language.yml), sounds, and an item
blacklist that also runs as a whitelist if you flip the mode. Even the command
words and permission nodes can be renamed in commands.yml. A taste of
config.yml:
Bank:
Pin:
Enabled: true
Cheques:
Enabled: true
Minimum:
Amount: 1.0
Book:
Enabled: true
Cost: 50.0
Commands
| Command |
What it does |
/bank |
Open the bank |
/bank money ... |
Deposit or withdraw money |
/bank exp ... |
Deposit or withdraw XP |
/bank cheque ... |
Write and cash cheques |
/bank admin open <player> |
Look inside a player's bank |
/bank admin reload |
Reload configuration |
The full command and permission reference is on the
wiki.
Install
- Put the jar in
plugins/ and start the server once.
- Stop it and edit the generated files in
plugins/Bank/.
- Start it again.
Data saves to SQLite by default, so there is no database to stand up and no
other plugin to install first. The setup guide
covers the details, including the Citizens banker.
Compatibility
Spigot, Paper or Bukkit, 1.13 through current. Server side only. Optional hooks
for Vault, Citizens, PlaceholderAPI, MVdWPlaceholderAPI, HeadDatabase, Skript
and TimeIsMoney; none of them are required.
Lite vs Premium
Lite is the full core of Bank. Premium is for servers that need shared databases
and an economy layer on top. Same config format, so upgrading later loses nothing.
| Feature |
Lite (this page) |
Premium |
| Item, money and XP storage |
Yes |
Yes |
| Cheques and cheque books |
Yes |
Yes |
| PIN lock |
Yes |
Yes |
| Signs, blocks, Citizens bankers |
Yes |
Yes |
| SQLite storage |
Yes |
Yes |
| MySQL and MongoDB (multi-server) |
No |
Yes |
| Interest on money and XP |
No |
Yes |
| Bank loans |
No |
Yes |
| Item sorting |
No |
Yes |
| Import from other bank plugins |
No |
Yes |
/bank top and /baltop leaderboards |
No |
Yes |
Bank Premium on SpigotMC
(viewing it needs a free SpigotMC forum account).
Support
Fastest help is the Discord; feature requests
welcome there too. The wiki documents
every config file, and the source is on GitHub.
DiamondRushXD made a video walkthrough:
Metrics
Bank Lite sends anonymous stats to bStats: a unique identifier, Java version,
online or offline mode, plugin version, server version, OS name, version and
architecture, CPU core count, player count, and the Metrics version. Disable it
globally in the bStats config file to opt out.
评论 0
登录后参与评分
还没有评论,来抢沙发吧