- 版权类型
- 原创
- 插件中文名称
- 轻量银行
- 插件英文名称
- Lightweight bank
- 原帖地址
- #
- 支持的核心(服务端)
- Spigot
- Paper
- Purpur
- 语言支持
- 多语言
- 前置组件
- PlaceholderAPI https://www.spigotmc.org/resources/placeholderapi.6245/
Vault https://www.spigotmc.org/resources/vault.34315/
essentialsX(或者其他金融插件) https://essentialsx.net/
- 适配版本(Java)
- 1.21
- 1.20
Paper 1.21.x完全兼容★★★★★
Purpur 1.21.x完全兼容★★★★★
Spigot 1.21.x完全兼容★★★★☆
Bukkit 1.21.x基本兼容★★★☆☆
数据结构
plugins/
└── GfishBank/
├── config.yml
├── bank.mv.db
占位符:
config.yml
Purpur 1.21.x完全兼容★★★★★
Spigot 1.21.x完全兼容★★★★☆
Bukkit 1.21.x基本兼容★★★☆☆
数据结构
plugins/
└── GfishBank/
├── config.yml
├── bank.mv.db
占位符:
- %gfishbank_balance% - 显示玩家银行余额
- %gfishbank_formatted_balance% - 显示格式化的银行余额
config.yml
代码:
# 数据库设置
database:
# 注意:从1.0.1版本开始,数据库URL配置将被忽略
# 数据库文件将自动存储在插件数据文件夹中
username: "gfish"
password: "password"
# 定时保存设置
auto-save:
enabled: true
interval: 300 # 秒
# 存款利息设置
interest:
enabled: true
interval: 3600 # 秒
rate: 0.01 # 1%
max-balance: 1000000 # 最大存款上限,-1表示无上限
max-interest: 10000 # 每次最大利息金额,-1表示无上限
# 阶梯利率 (可选)
tiered-rates:
enabled: false
tiers:
- max-balance: 10000
rate: 0.01
- max-balance: 50000
rate: 0.02
- max-balance: 100000
rate: 0.03
- max-balance: -1 # 无上限
rate: 0.05
# 取款手续费设置
withdrawal-fee:
enabled: false
rate: 0.005 # 0.5%
# 阶梯费率 (可选)
tiered-rates:
enabled: false
tiers:
- max-amount: 1000
rate: 0.01 # 1%
- max-amount: 5000
rate: 0.008 # 0.8%
- max-amount: 10000
rate: 0.006 # 0.6%
- max-amount: -1 # 无上限
rate: 0.005 # 0.5%
# 消息设置
messages:
prefix: "&8[&bGfishBank&8] &r"
help:
- "&b===== &3GfishBank Help &b====="
- "&3/bank help &7- 显示此帮助"
- "&3/bank balance &7- 查看银行余额"
- "&3/bank deposit <amount> &7- 存款"
- "&3/bank withdraw <amount> &7- 取款"
- "&3/bank top &7- 查看银行余额排行榜"
balance: "&a您的银行余额: &e$%balance%"
deposit: "&a成功存入 &e$%amount%"
withdraw: "&a成功取出 &e$%amount%"
insufficient_funds: "&c余额不足!"
invalid_amount: "&c无效的金额!"
interest: "&a您获得了 &e$%amount% &a的利息!"
withdrawal_fee: "&c收取了 &e$%amount% &c的手续费"
max_balance_reached: "&c您已达到最大存款上限 &e$%max_balance%&c!"
deposit_limit_warning: "&e提示: 您还可以存入 &e$%remaining%&c (上限: &e$%max_balance%&c)"
interest_cap: "&e提示: 本次利息已达到上限 &e$%max_interest%&c"
withdraw_fee_info: "&e提示: 取款将收取 &e%rate%% &c的手续费 (约 &e$%estimated_fee%&c)"