ChestBank
Pages: < Configuration > | < Commands > | < Permissions >
PLEASE report all bugs and suggestions as tickets using the Bukkit ticket tracker above
IMPORTANT for users updating from before v2.1.0
Version 2.1.0 introduced a complete change to the how chest data is stored. Data is now stored in an SQLite database and no longer uses YAML (.yml) files. If you have a version of the plugin prior to 2.1.0 that was not using SQL for storage, please change your storage method to SQL BEFORE updating to 2.1.0
The Officialish ChestBank
A ChestBank is a chest that you can place items in, but no-one else can access. Everyone who opens the chest sees their own inventory. The inventory is shared across all ChestBanks, so you can access your account from multiple locations.
ChestBanks can be accessed via a physical ChestBank location AND/OR using the /chest command (depending on permissions)
Features
- 100% secure item banking system
- Create multiple networks of ChestBanks that share inventories
- Limit access to specific ChestBank networks by name (see permissions)
- Limit the maximum number of item stacks a user can store in a ChestBank
- Admin commands to snoop into other peoples accounts (use with caution)
- A ChestBank in a single chest contains a double chest's inventory
- Whitelist/Blacklist option to limit items allowed in the Chestbank
- Optional creation and access fees (requires Vault)
- Option to turn all ChestBanks into Ender Chests on creation
- Access your ChestBank using /chest (permissions permitting)
- Support for YML or SQLite, with a YML to SQLite converter for pre 1.11.0 updates
- (SQLite Only) Delete any accounts where the player has not logged in for X days
- NO SPOUT PLUGIN REQUIRED
Review
Thanks go to luigi_vampa for his updated YouTube Review of ChestBank.
Installation
Put the JAR file in your /plugins folder, assign permissions and reload/restart.
Configuration
See the < Configuration > page for details
Donations
To show your support and help me justify to my wife why I spend so much time on Minecraft, please donate using the Donate button in the top right corner of this page!
Other Projects
Take a look at my other plugins, including SimpleSpawn, MyChunk & ATMsigns.
Suggest a Project
Got an idea for a project? PM me and I'll give it a look!
@Technius
Yes I am looking into a better way to handle the meta since fireworks are WAAAAAY to fiddly to do it the way I am at the moment. Thanks for your comment.
I have a suggestion which involves using the ItemMeta serialization. Leave your current loading code as a converter and use the YAML configurations to save the ItemMeta. When you save the file, name it something else so your converter doesn't screw up. I think this will be easier than what you are doing now, and can support more types of metadata!
@Faua
already one step ahead.... I used method B. Posted a dev build of the fix yesterday
Chestbank 1.9.1-RC2 https://www.dropbox.com/s/tdwyom30lhl1xu1/ChestBank.jar
@ellbristow
Info on the load problem:
You split by ";", then by ":" and then by ":META:"
Since the second split is contained inside the 3rd, most of your "meta" split strings ends up inside the item array and not in the metaSplit array
solution a) make another special character
solution b) change String[] item = items.split(":"); to String[] item = items.split(":",5); I think it is 5 might be 4
Oh workaround is to search for chests.yml file for ":META:(...);" and delete them (including the : before the meta and all the way but excluding the next ; )
more info can be found on http://damnation.eu/phpbb/viewtopic.php?f=9&t=2560
Best regards Faua (OriginalMadman's helper)
OK. I've updated the dropbox DEV build with a fix for armour meta data (which seems to be what was causing the bigger problems, and a minor fix for other meta data.
PLEASE NOTE: This is not a release build... not even a beta build. PLEASE take backups of all chest data before attempting to use a DEV build.
Chestbank 1.9.1-RC2 https://www.dropbox.com/s/tdwyom30lhl1xu1/ChestBank.jar
The final 1.9.1 release will hopefully include support for fireworks... but man are those things complicated!
@OriginalMadman
Also now getting the same startup error.
Startup:
2013-01-18 23:34:36 [SEVERE] Error occurred while enabling ChestBank v1.9.1 (Is it up to date?) java.lang.ArrayIndexOutOfBoundsException: 2 at me.ellbristow.ChestBank.ChestBank.getAccounts(ChestBank.java:704) at me.ellbristow.ChestBank.ChestBank.onEnable(ChestBank.java:114) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:321) at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:300) at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:259) at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:149) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
@ellbristow
Thanks, much appreciated - but I still have errors: http://pastebin.com/B1LTLS8D
1.9.1 and CB1.4.6 R0.3 beta. Chest based plugins I can think of are LWC (which is not on for these chests) and Grief Prevention (never been an issue earlier). I have been running ChestBank for a a year or so, might there be some data issues or old data messing things up? I have 5 networks and 5 chests.
Config and chests (I can send you the full data file if needed). http://pastebin.com/trrYcdNQ
@ellbristow
Working great! Thanks!
@OriginalMadman
OK... here's a development build of v1.9.1. It's not finished yet because I want to add full support for fireworks... which the current version doesn't, but this should stop the crashes without having to delete your chest data.
https:www.dropbox.com/s/tdwyom30lhl1xu1/ChestBank.jar
NOTE: This is not an official release... it's just a stopgap until I can get a full release ready and it may contain bugs. I recommend that you backup your chestbank data before using this build.
Hi ellbristow, any progress on the issue?
I'd prefer not to have to wipe all the banks to get going again...
Making any progress on a fix? Been missing this plugin. :(
For me, its when a player puts a book into the inventory, it messes up the parse from your metasplit. Didn't have a lot of time to see but I wish you luck in a speedy resolve!
Thanks - hope we can have a solution soon as people are starting to panic! heh ;)
I get this error at startup, but chestbank still actually loads, and chests are still on the network. [SEVERE] Error occurred while enabling ChestBank v1.9.0 (Is it up to date?)
When someone tries to access the chest, the server error is: [SEVERE] Could not pass event PlayerInteractEvent to ChestBank v1.9.0 (essentially making it act as just a normal chest)
Bukkit Version: 1.4.6-R03-5-g82c58b5-b2589jnks - Implementing API version 1.4.6-R0.4-SNAPSHOT
If there is something else I can help do to track down the bug let and/or I'm doing something entirely foolish let me know. (I also submitted a ticket a few days ago and it seems a few others at least have the same problem)
Thanks - Cal.
Note: I confirmed that deleting the old folder and letting it make a new one fixes this, except that people who have been on the server since April would of course lose all of their stuff. I tried restarting, overwriting the old backup file that has their items and get the same access error problem. I confirmed the yaml file is sound (it worked with past version flawlessly also)
I'm also getting this at server startup now, if it helps: http://pastebin.com/vYjTeccr
@ellbristow
Sounds awesome, thank you for your time!
If you can't replicate the problem or need/want config + plugin files I can give you that.
Could it maybe be possible to make this compatible with the citizens plugin?
@OriginalMadman
Hi guys, it's strange that I'm not getting this bug on my own server, but I am looking into it and will put together a fixed build once I've tracked it down.
I agree that deleting the accounts is not an acceptable solution. I will fix this and release a 1.4.6 build.
@phillgates2
Starting fresh would be an absolutely TERRIBLE option for our server. Chestbanks are stocked with very hard-earned stuff from dozens (hundreds?) of players on the adventure maps...
(Not quite like a "bank" should work)
@OriginalMadman @alanthya @TagasiCraft and for all that is concerned for the 1.4.6 update you may need to delete the chestbank folder on your server for it to work i had the problem that all cmd's worked but chests did not i did some testing and found that when i deleted the folder and started fresh it worked phill