告示牌银行
版本 2.0.3 现已发布!
(由于审批时间,下载可能会有延迟)
依赖项 [Vault]
Sign Bank 是一款用于存储金钱和经验值的插件,允许你通过告示牌交互全自动地存取金钱/经验值。
金钱银行
金钱银行系统的操作非常简单:存入金钱,取出金钱。目前尚未实现利息功能,但希望很快会添加。要创建一个金钱银行,只需在告示牌的第一行输入 "money bank",它便会自动创建。右键点击该告示牌即可访问银行,之后的右键点击将在“取款”和“存款”之间切换。要进行取款或存款,只需在聊天栏中输入金额,系统便会自动完成交易。
经验值银行
经验值银行系统比金钱银行稍显复杂。要创建它,只需在告示牌的第一行输入 "xp bank",它便会自动创建。经验值银行系统使用一种算法来计算精确的往返数值,模拟 Minecraft 实际的经验值公式,从而确保在存取过程中几乎(或完全)不损失任何经验值。告示牌上显示的经验值余额是作为数值计算的总经验值,而非等级。首次访问经验值银行时,银行会告知你在当前等级下最多可以从银行中取出多少等级的经验值。请放心,使用银行时几乎不会损失任何经验值,但请记住,银行仅支持按等级进行存取,而非按精确的经验值数量,因为升级所需的经验值数量是波动的,而我的算法已对此进行了考量。这是为了防止玩家通过反复获取10级、存入、再获取10级、存入等方式轻松积累大量等级,然后一次性取出巨额等级的情况发生。
ATM
ATM 本质上就是链接到你金钱账户的告示牌,但仅提供取款选项。要创建 ATM,只需在告示牌的第一行输入 "atm",插件便会处理其余部分。这些 ATM 更适合放置在你服务器的各个随机位置,供人们“随时随地”从银行取钱,更像是一种现实生活的模拟。
当前功能
- 可配置的利息系统!
- 转账 系统,允许金钱银行用户将资金汇入其他玩家的银行账户!
- 自动检测货币名称。
- 支持使用 "/" 命令查看当前的利息以及银行账户中的金钱/经验值余额。
- 在第一行放置带有 "Money Bank" 字样的告示牌将创建一个 金钱银行;在第一行放置带有 "XP Bank" 字样的告示牌将创建一个 经验值银行。
- 右键点击未占用的银行会自动激活,并显示你当前的 余额。
- 当银行处于打开状态时,右键点击将在 取款、存款 和 转账 选项之间循环切换。
- 在聊天栏中输入金额将自动从你的银行账户中取款/向其中存款。
- 如果银行已被占用,系统将不允许其他玩家与该银行交互。
- 要退出银行,只需走开,银行便会自动为你关闭!
- 进行取款/存款后,银行余额将自动更新。
- 破坏银行告示牌将销毁该银行。
- 支持创建/销毁银行的权限控制。
- 可配置的利息系统。
- 可配置的最大金额功能。
- /sb see <playername> 可查看指定玩家在银行中的余额。
- 无限数量的银行!

计划中的功能
- 代码清理。
ATM
金钱转账系统。
货币名称检测。
最大银行金额限制。
- 可能的贷款系统。
- 来自玩家的建议。
添加权限控制。
为金钱银行添加利息系统。
命令
- /sb interest - 显示关于利息的信息,包括下次发放时间、间隔期及金额。
- /sb interest disburse - 此命令强制立即执行自动利息发放。
- /sb balance - 显示用户当前在银行中的余额,包括金钱和经验值。
- /sb see <PlayerName> - 显示指定玩家的余额。#需要权限
- /sb set <PlayerName> <Amount> - 将指定玩家的余额设置为给定金额。#需要权限
- /sb give <PlayerName> <Amount> - 向指定玩家的账户给予一定金额。#需要权限
- /sb take <PlayerName> <Amount> - 从指定玩家的账户扣除一定金额。#需要权限
更新日志
版本 2.0.1: 2012年6月12日
- 修复了经验值银行存款时的 decimalFormat 异常。
- 增加了另一项安全检查,以解决未使用日志记录或日志加载引发异常的问题。
版本 2.0: 2012年5月12日
- 对文件 I/O 和利息系统进行了全面的代码重写。**这将要求你重新创建你的银行,否则插件将会崩溃!**
步骤:
1. 关闭服务器。
2. 删除 banks.yml 文件。
3. 使用新的 SignBank.jar 启动服务器。
4. 重新创建银行。
- 已修复!利息系统现在应能完全正常工作,包括利息发放、绕过最大银行上限等功能。
- 新增!新命令!拥有 “sb.admin” 权限的玩家可以使用新的 “/sb interest disburse” 命令来强制立即发放银行利息!
- 已修复!那个众所周知的 PlayerMoveEvent 错误现在应该终于被修复了,有待确认!
- 更多的小修复等,现在想不起来了!
版本 1.7:2012年11月7日
- 新增!添加了3个新命令。这些命令允许你直接向玩家账户“取”、“存”和“设置”金额。编辑账户的权限节点为 “sb.accounts.edit”。
- /sb set <PlayerName> <Amount> 将玩家的余额设置为指定金额。
- /sb give <PlayerName> <Amount> 向玩家账户存入指定金额。
- /sb take <PlayerName> <Amount> 从玩家账户取出指定金额。
- 已修复!修复了 XP 银行(XP Banks)的显示问题,它们不再显示金钱银行的提示信息,而是拥有自己的独立显示界面!同时调整了使用 /sb balance 命令时的部分聊天颜色,使数值更加醒目。
- 已修复!希望解决了最大银行上限绕过功能工作不正常并偶尔引发其他问题的情况。
- 新增!现在可以将所有用户交易记录到 Logs.yml 文件中。可通过配置文件切换开关。默认值:true。
- 更改!将绕过最大银行上限的权限节点更改为 “sb.account.bypass”。
- 更新以兼容 CB 1.4.2 - R 0.2。
版本 1.6:2012年8月7日
- 将 PlayerChatEvent 更新为 AsyncPlayerChatEvent。
- 更新了所有的经验算法以匹配 1.3.1 版本的内部新经验算法。转换过程并不轻松!
- 注意:本次更新不会重置 EXP,你可能会看到玩家的经验值因从旧算法切换到新算法而出现波动。如果你想从头开始,请在重新启动服务器前删除 xpAccounts.yml。
- 增加了对启动时涉及 Null 世界导致利息发放抛出空指针异常(NPE)的检查。
- 修复了当服务器经历多个循环而未重启时,拥有绕过权限节点的玩家的利息会错误发放的问题。
- 更新以兼容 CB 1.3.1 - R 1.0。
版本 1.5:2012年7月5日
- 添加了一个用于绕过最大银行金额的新权限节点。
- sb.bypass.maxbankamount
- 修复了利息系统不尊重最大银行金额值的错误。
- 修复了当 SignBank 加载时最大银行值未正确存储的保存错误。
版本 1.4:2012年6月6日
- 重新排列了一些监听器类以便更好地适应优先级。
- 添加了新类来管理插件挂钩(Plugin Hooks)。
- 修复了可能导致某些服务器告示牌无法正常工作的剩余任何错误。
版本 1.3.1:2012年6月5日
- 最新测试版构建,以确保所有告示牌都能正常工作。
- 修改了 /sb 命令,使其再次更流畅地导航至帮助菜单。
版本 1.3:2012年6月4日
- *新增* 添加了可在 config.yml 中配置的最大银行金额限制。这将允许你限制玩家在任意时刻能在金钱银行中存储的金额。
- *重构* 完全重做了利息系统。现在利息系统将更好地跟踪上次利息发放的时间并据此发放。因此,如果你的服务器重启或由于任何原因停机,Sign Banks 将会考虑这一点,并在启动时发放利息或等待剩余时间直到下次发放,然后继续其正常的计时器。
- /sb interest 现在也将显示距离下一次利息发放的时间。
- /sb see <playername> 命令不再区分大小写。
- 为部分 /sb 命令增加了更精确的颜色显示。
- 更新以兼容 1.2.5-R3.0。
版本 1.2.2:2012年5月12日
- 添加了命令 /sb ? 以更好地帮助你导航可用的 Sign Bank 命令。
- 添加了命令 /sb see <playername>。此命令允许玩家查看特定玩家在银行中的金额。此命令受容量限制。默认为 OP(管理员)。
- 添加了使用新 /sb see 命令的权限节点。
- sb.see
版本 1.2.1:2012年5月9日
- 修复了一个错误,防止玩家利用颜色自制银行告示牌。
- 修复了一个错误,打开其他类型的银行会导致第一个告示牌卡住。
- 代码清理,一如既往。
版本 1.2:2012年4月28日
- *新增* 添加了 ATM 告示牌。只需在告示牌第一行写上 ATM 即可创建。
- 添加了使用每种类型银行的权限节点。
- sb.use.money
- sb.use.xp
- sb.use.atm
- 移除了一些残留的调试信息。
- 移除了 XP 银行显示转账选项的错误。
- 代码清理,一如既往。
版本 1.1.0:2012年4月5日
- *新增* 为金钱银行添加了转账功能。输入玩家名称后跟金额,即可将该金额发送到该玩家的银行!(警告:此功能受容量限制)
- 添加了功能,使你的货币名称现在可以通过 SignBank 消息找到并显示。
- 添加了用于检查利息信息和银行余额的 “/” 命令。
-/signbank 将显示版本和作者。=)
- /signbank interest 将显示利息百分比和发放时间。
- /signbank balance 将显示当前金额和最大提现额度。
- 为 “/” 命令添加了 “sb” 别名。
- 调整了利息控制,以便在插件重载时更好地关闭。
- 代码清理,一如既往。
权限说明!
- sb.admin - 此权限赋予创建和销毁银行的能力。默认为 Op
- sb.create - 此权限赋予创建银行的能力。默认为 Op
- sb.use.money - 此权限允许使用金钱银行。默认为 OP
- sb.use.xp - 此权限允许使用经验银行。默认为 OP
- sb.use.atm - 此权限允许使用 ATM。默认为 OP
- sb.destroy - 此权限允许销毁银行。默认为 OP
- sb.see - 此权限允许访问 /sb see 命令。默认为 OP
- sb.account.bypass - 绕过最大银行限额。
- sb.account.edit - 此权限允许编辑银行账户。默认为 OP
报告错误/问题
在报告问题时,请执行以下操作
- 你的 Craftbukkit 版本。
- Sign Bank 的当前版本。
- 描述发生问题的具体情况(列出所有相关信息、名称、告示牌上的文字等)
- 复制/粘贴控制台日志中的错误信息。
安装与帮助
- 将 SignBank.jar 放入 /plugins 目录。
- 享受吧!
- 维基页面即将推出!
捐赠
对我的工作满意吗?想要提供帮助吗?想要鼓励更多基于告示牌的插件吗?
欢迎 捐赠!
Sign Bank
Version 2.0.3 is out now!
(Download may be delayed due to approval time)
Dependencies [Vault]
Sign Bank is a Money and EXP Bank plug-in that allows you to store money/experience all fully automated through sign interaction.
Money Banks
The Money Bank system is all pretty straight forward, deposit money in, withdraw money out, interest is not implemented yet, but will be soon hopefully. To make a money bank, simply put, money bank on the first line of a sign, and it will auto create. Right clicking on the sign will access the bank and right clicks after that cycle through the Withdraw and Deposit. To withdraw/Deposit, simply enter the amount in chat and it will automatically make the transaction.
XP Banks
The Xp Bank system is a bit more complex than the Money Banks. To create, simply put, xp bank, on the first line of a sign and it will auto create. The Xp Bank system uses an algorithm to calculate exact amounts back and forth, mimicking Minecrafts actual Exp formulas so that very little(if any) exp is lost while depositing/withdrawing. The balance displayed on the sign for exp is total amount of exp as a value, not levels. Upon first accessing a Xp Bank, the Bank will inform you the max amount of levels you can withdraw from the bank at your current level. Be assured that virtually no exp is lost when using the bank but keep in mind that the Bank only works with depositing/withdrawing levels, not the exact amount of exp, because the amount of exp needed between levels fluxes, and my algorithm accounts for this. This is to avoid players from getting 10 levels, depositing, get 10 levels, depositing, etc etc get levels much easier and then just withdrawing the tons of levels.
ATM's
The ATM's are simply just signs that link to your money accounts, but only carry the Withdraw option. To create, simply put ATM on the first line of a sign, and the plugin will do the rest. These are more for random locations in your server for people to get money from the bank "On-The-Go". More of a real life simulation.
Current Features
- Configurable Interest System!
- Transfer System for money banks to wire money to other players Bank accounts!
- Auto currency name detection.
- "/" commands to check current interest and current money/xp in Bank account.
- Placing a sign with Money Bank on the first line will create a Money Bank and placing a sign with XP Bank on the first line will create an Xp Bank.
- Right-Clicking an unoccupied Bank will automatically turn on, and display your current Balance in the Bank.
- Right-Clicking once the Bank is open will cycle through the Withdrawal, Deposit, and Transfer options.
- Entering an amount into chat will automatically Withdraw/Deposit that amount from/to your Bank.
- If the Bank is already in-use, it will not allow another player to interact with the Bank.
- To leave a Bank, all you have to do is walk away and the Bank will automatically close for you!
- Bank Balance will automatically update upon making a Withdrawal/Deposit.
- Breaking a Bank Sign, will destroy the Bank.
- Permissions for creating/destroying Banks.
- Configurable Interest System.
- Configurable Max Amounts Features.
- /sb see <playername> to see how much players have in their Banks.
- Unlimited number of Banks!

Planned Features
- Code Cleanup.
ATM's
Money Transfer System.
Currency name detection.
Max Bank Amount.
- Possible Loan System.
- Suggestions from players.
Adding Permissions.
Adding Interest System for Money Banks.
Commands
- /sb interest - This displays information on the Interest. Next disbursal, interval, and amounts.
- /sb interest disburse - This command forces an automatic interest disbursal.
- /sb balance - This displays the users current balance in the bank, for both money and EXP.
- /sb see <PlayerName> - This displays the balance of the specified player. #Requires Permission
- /sb set <PlayerName> <Amount> - This sets the players balance to the amount. #Requires Permission
- /sb give <PlayerName> <Amount> - This gives amount to players account. #Requires Permission
- /sb take <PlayerName> <Amount> - This takes amount from players account. #Requires Permission
Change Log
Version 2.0.1: 12/6/2012
- Fix for decimalFormat Exceptions on xp Bank Depositing.
- Added another safety check for those not using logging and Log loading throwing Exception.
Version 2.0: 12/5/2012
- Full Code Rewrites to the File I/O and the Interest System. THIS WILL REQUIRE YOU TO REMAKE YOUR BANKS OR THE PLUGIN WILL BREAK!
Steps:
1. Turn off server.
2. Delete banks.yml
3. Start server with new SignBank.jar.
4. Remake Banks.
- FIXED! Interest System should now fully work in the sense of interest disbursion, max bank cap bypass, etc.
- ADDED! New Command! Players with the “sb.admin” permission can use the new “/sb interest disburse” command to force a bank disbursion immediately!
- FIXED! The long known PlayerMoveEvent Bug should now FINALLY be fixed, pending confirmation!
- More minor fixes, etc, can't think of them right now!
Version 1.7: 11/7/2012
- ADDED! Added 3 new commands. These commands allow you to “take”, “give”, and “set” money amounts directly to players accounts. The permission node to edit accounts is “sb.accounts.edit”.
- /sb set <PlayerName> <Amount> Sets the players balance to the amount.
- /sb give <PlayerName> <Amount> Gives amount to players account.
- /sb take <PlayerName> <Amount> Takes amount from players account.
- FIXED! Fixed the display for XP Banks, they no longer display Money Bank messages, but have their own display! Also adjusted some chat colors when using the /sb balance command, to make the values more apparent.
- FIXED! Hopefully fixed the issue with the max bank cap bypass not working properly and causing other issues to occur on rare occassion.
- ADDED! You can now Log all User transactions to a Logs.yml file. Toggleable through config. Default: true.
- CHANGE! Changed the permission node for bypassing max bank cap to “sb.account.bypass”.
- Updated to CB 1.4.2 - R 0.2.
Version 1.6: 8/7/2012
- Updated PlayerChatEvent to AsyncPlayerChatEvent.
- Updated all the exp algorithms to match the new internal experience algorithms for 1.3.1. This was not fun to convert!
- NOTE: EXP is not being reset for this and you may see a flux in your players exp from old algorithms to new. If you want to just start fresh, delete your xpAccounts.yml before starting your server back up.
- Added a check for NPE's being thrown for interest disbursion on start ups involving Null worlds.
- Fixed issue when Interest would disburse improperly for players with bypass node when the Server ran through multiple cycles without a restart.
- Updated to CB 1.3.1 - R 1.0.
Version 1.5: 7/5/2012
- Added a new bypass permission node for Max Bank Amounts.
- sb.bypass.maxbankamount
- Fixed a bug with the Interest System not respecting the Max Bank Amount values.
- Fixed a save bug with Max Bank Value not properly storing when SignBank loaded.
Version 1.4 : 6/6/2012
- Moved around some listener classes to better accommodate priority.
- Added in new classes to manage Plugin Hooks.
- Fixed any remaining bugs that should be stopping some servers signs' to not function properly.
Version 1.3.1 : 6/5/2012
- Latest Beta Build, to ensure all signs are functioning.
- Modified /sb to once again navigate a bit smoother to the help menu.
Version 1.3 : 6/4/2012
- *NEW* Added in a Max Bank Amount that can be configured in the config.yml. This will allow you to limit the amount a player can store in a Money Bank at any given time.
- *REMODELED* Completely redid the Interest System. Now the Interest System will better keep track of the last disbursion of interest and disburse accordingly. So now if you r server is restarted, or goes down for any reason, Sign Banks will take this into account and will disburse interest upon start up or wait the remaining time till next disburse, then continue on its normal timer.
- /sb interest will now also display the amount of time until the next interest disbursal.
- /sb see <playername> command is no longer case-sensitive.
- Added more precise coloring to some of the /sb commands.
- Updated to 1.2.5-R3.0
Version 1.2.2 : 5/12/2012
- Added command /sb ? to better help navigate the Sign Bank commands available to you.
- Added command /sb see <playername> . This command will allow players to see the amount of money a certain player has in the Bank. This command is cap sensitive. Defaults OP.
- Added permission node for using the new /sb see command.
- sb.see
Version 1.2.1 : 5/9/2012
- Fixed a bug where players could use colors to makeshift their own bank signs.
- Fixed a bug where opening banks of other types would cause the first sign to become frozen.
- Code cleanup as usual.
Version 1.2 : 4/28/2012
- *New* Added ATM Signs. Create them by simply writing ATM on the first line of a sign.
- Added permission nodes for using each type of Bank.
- sb.use.money
- sb.use.xp
- sb.use.atm
- Removed a few lingering debugging messages.
- Removed bug where XP Bank would show Transfer options.
- Code Clean Up as always.
Version 1.1.0: 4/5/2012
- *New* Added Transfer feature to the money banks. Typing in a players name followed by the amount will send that amount to that players bank! (Warning, this feature is cap sensitive)
- Added feature so your currency name will now be found and displayed via SignBank messages.
- Added "/" commands to check interest info and bank balances.
-/signbank will display Version and Author. =)
- /signbank interest will display interest percent and disbursion time.
- /signbank balance will display current money and max level withdrawl.
- Added "sb" alias to "/" commands.
- Adjusted interest control to better shut down when plugins are reloaded.
- Code Clean Up as always.
Permissions!
- sb.admin - This permission gives power to create and destroy Banks. Defaults Op
- sb.create - This permission gives power to create Banks. Defaults Op
- sb.use.money - This permission gives power to use Money Banks. Defaults Op
- sb.use.xp - This permission gives power to use Xp Banks. Defaults Op
- sb.use.atm - This permission gives power to use ATMs. Defaults Op
- sb.destroy - This permission gives power to destroy Banks. Defaults Op
- sb.see - This permission gives access to the /sb see command. Defaults Op
- sb.account.bypass - Bypass the Max Bank Cap Amount.
- sb.account.edit- This permission gives power to edit Bank Accounts. Defaults Op
Reporting Bugs/Issues
When Reporting An Issue, Please Do The Following
- Your Craftbukkit version.
- Current version of Sign Bank.
- Describe the exact situation in which the issue occured (listing all applicable info, names, what sign reads, etc etc)
- Copy/Paste the error from the Console Log.
Installation and Help
- Drop SignBank.jar into /plugins directory.
- Enjoy!
- Wiki Page Coming Soon!
Donations
Happy with my work? Want to help out? Want to encourage more Sign Based plugins?
Feel Free To Donate!
评论 0
登录后参与评分
还没有评论,来抢沙发吧