sBank
🏰 加入 DrakesCraft 官方社区!
- 🎮 服务器 IP:
mc.drakescraft.cl(Java 1.21.11 & Bedrock)- 💬 官方 Discord:discord.gg/drakescraft
- 🌐 网站与指南:web.drakescraft.cl — 🛒 商店:web.drakescraft.cl/store
在我们的技术生存网络中,使用此银行插件以及 80 多个经过优化的插件和附加组件一起游玩吧!
适用于 Minecraft 服务器的 Vault 银行插件。此分支由 DrakesCraft 维护,强调资金流动的确定性、记录透明性以及操作安全性。
功能特性
- 基于 SQLite 或 MySQL 的个人银行账户。
- 存款、取款及可选的实体货币物品。
- 贷款、计划性还款及可配置的利息。
- 支持 Vault 经济集成及 Citizens 银行家 NPC 支持。
- 每日 JSONL 审计文件,记录存款、取款、实体货币、贷款、还款、利息及死亡惩罚。
- 实体货币使用内部物品数据;其显示的名称和描述文本绝不作为价值证明。
- 完成的存款、取款及实体货币提取会立即持久化,无需等待自动保存。
审计追踪
每笔银行变动都会写入以下位置:
plugins/sBank/audit/transactions-YYYY-MM-DD.jsonl
每一行包含时间戳、玩家 UUID、变动类型、金额、变动前后的钱包余额、变动前后的银行余额以及简短的来源备注。由于审计基于文件,正常运行时不会刷屏 Minecraft 控制台。
在 config.yml 中进行配置:
audit:
enabled: true
directory: "audit"
指令
| 指令 | 描述 |
|---|---|
/bank |
打开个人银行菜单。 |
/bank debt |
查看当前债务。 |
/bank <player> |
打开某玩家的管理员视图。 |
/bank reload |
重载配置(仅限管理员)。 |
权限
| 权限节点 | 描述 |
|---|---|
sbank.use |
打开银行菜单。 |
sbank.loan |
申请贷款。 |
sbank.interest |
获取配置的银行利息。 |
sbank.interest.<percentage> |
覆盖配置的利率。 |
sbank.dontlosemoney |
跳过环境死亡惩罚。 |
sbank.admin |
访问管理指令及重载指令。 |
sbank.bypass.banker |
在启用银行家 NPC 模式时使用银行。 |
运行时说明
- 必须安装 Vault。Citizens 为可选。
- 数值交易必须为有限值且大于零。
- 在更改对应的银行余额之前,会检查 Vault 的响应。
- 如果持久化失败,将尽可能回滚相应的 Vault 交易,并且绝不会向玩家确认该交易。
- 在 DrakesCraft 默认配置中禁用了利息,因为它会铸造货币;仅在明确的经济政策下启用它。
- 聊天驱动的操作在交互 Vault、背包或持久化插件状态之前,会返回到 Bukkit 主线程。
- 利息会根据配置的利率产生货币。请将其利率和间隔视为经济政策,而非无害的美观设置。
构建
使用 Java 8 或更高版本配合 Maven:
wsl -e bash -lc 'cd /mnt/c/Users/jack/Documents/GitHub/Repositorios\ personales/sBank && mvn clean package'
生成的插件位于 target/ 目录中。
部署
- 备份当前的
sBank.jar和plugins/sBank/sbank.db。 - 在服务器停止时仅替换 JAR 文件。
- 启动服务器并进行一次受控的存款和取款测试。
- 在允许常规流量之前,检查新的审计文件。
📄 许可证与上游归属
本项目是由 JackStar6677-1 在 DrakesCraft Labs 下维护的独立分支。
- 原始项目: 由上游作者及开源社区创建。
- DrakesCraft 优化: 针对 Paper/Purpur 1.21.11+、Java 21、高并发、异步安全性以及防止漏洞/复制进行了现代化改造。
- 许可证: 根据原始 GNU 通用公共许可证 v3.0 (GPLv3)(或原始上游许可证)分发。完整条款请参阅 LICENSE 文件。
sBank
🏰 ¡Únete a la Comunidad Oficial de DrakesCraft!
- 🎮 IP del Servidor:
mc.drakescraft.cl(Java 1.21.11 & Bedrock)- 💬 Discord Oficial: discord.gg/drakescraft
- 🌐 Web & Guía: web.drakescraft.cl — 🛒 Tienda: web.drakescraft.cl/store
¡Juega con este banco y más de 80 plugins y addons optimizados en vivo en nuestra network de supervivencia técnica!
Banking plugin for Minecraft servers using Vault. This fork is maintained for DrakesCraft, with emphasis on predictable money movements, transparent records, and operational safety.
What It Does
- Personal bank accounts backed by SQLite or MySQL.
- Deposits, withdrawals, and optional physical money items.
- Loans, scheduled debt payments, and configurable interest.
- Vault economy integration and Citizens banker support.
- Daily JSONL audit files for deposits, withdrawals, physical money, loans, debt payments, interest, and death penalties.
- Physical money uses internal item data; its visible name and lore are never accepted as proof of value.
- Completed deposits, withdrawals and physical withdrawals persist immediately instead of waiting for autosave.
Audit Trail
Every bank movement is written to:
plugins/sBank/audit/transactions-YYYY-MM-DD.jsonl
Each line includes the timestamp, player UUID, movement type, amount, wallet balances before and after, bank balances before and after, and a short source note. The audit is file-based, so normal operation does not flood the Minecraft console.
Configure it in config.yml:
audit:
enabled: true
directory: "audit"
Commands
| Command | Description |
|---|---|
/bank |
Opens the personal bank menu. |
/bank debt |
Shows the current debt. |
/bank <player> |
Opens the administrator view for a player. |
/bank reload |
Reloads configuration for administrators. |
Permissions
| Permission | Description |
|---|---|
sbank.use |
Open the bank menu. |
sbank.loan |
Request loans. |
sbank.interest |
Receive configured bank interest. |
sbank.interest.<percentage> |
Override the configured interest rate. |
sbank.dontlosemoney |
Skip environmental death penalties. |
sbank.admin |
Access administration and reload commands. |
sbank.bypass.banker |
Use the bank while banker NPC mode is enabled. |
Runtime Notes
- Vault is required. Citizens is optional.
- Numeric transactions must be finite and greater than zero.
- Vault responses are checked before the corresponding bank balance is changed.
- A failed persistence rolls back the matching Vault movement where possible and never confirms the transaction to the player.
- Interest is disabled in the DrakesCraft default configuration because it mints currency; enable it only as an explicit economy policy.
- Chat-driven actions are returned to the Bukkit main thread before interacting with Vault, inventories, or persistent plugin state.
- Interest creates money according to the configured rate. Treat its rate and interval as economy policy, not a harmless cosmetic setting.
Build
Use Java 8 or later with Maven:
wsl -e bash -lc 'cd /mnt/c/Users/jack/Documents/GitHub/Repositorios\ personales/sBank && mvn clean package'
The resulting plugin is generated in target/.
Deployment
- Back up the current
sBank.jarandplugins/sBank/sbank.db. - Replace only the JAR while the server is stopped.
- Start the server and make one controlled deposit and withdrawal.
- Check the new audit file before allowing regular traffic.
📄 License & Upstream Attribution
This project is a sovereign fork maintained by JackStar6677-1 under DrakesCraft Labs.
- Original Project: Created by the upstream authors and the open-source community.
- DrakesCraft Optimizations: Modernized for Paper/Purpur 1.21.11+, Java 21, high concurrency, asynchronous safety, and exploit/duplication prevention.
- License: Distributed under the original GNU General Public License v3.0 (GPLv3) (or original upstream license). See the LICENSE file for complete terms.
下载 sbank
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 sbank
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 sbank
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 sbank
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 sbank
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 sbank
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
手动射击,带冲击力
58 行更改(>= 5)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧