TreasureChest
TreasureChest

chest / doublechest / furnace / dispenser / brewingstand / etc
can be looted by every player
Set the forget-time, so players can loot it again later.
There's more!
See the Features list, for a full list of features.
How-To's | Commands | Permissions | Source Code | Issues
Video
Check out this video (old version), to get an idea of what this plugin can do:
Features
- Normal Treasure: You see the items when you open it for the first time
- Unlimited Treasure: You see the items when you open it every time
(dispensers/droppers can dispense/drop unlimitedly)
- Random Treasure: You see a random selection of the items. Can also be unlimited!
- Shared Treasure: Instead of having a personal inventory for every player, all players share the same treasure inventory.
- Forget-Time: You can access a treasure again... after the forget-time has passed.
- Custom messages: (found first time, found again, is unlimited)
- Some treasures are for some ranks.
- Create Treasure Groups to perform operations on a bunch of treasures at once!
- Add special rewards:
- Money using Vault
- Experience, Health, Hunger, Air
- Potion effects!
- Fly for some time
- Spawn mobs in a region! Or exp bottles or whatever
- Teleport to a region
- Create explosion at some location
- Place redstone torch at some location
- Restore a region using WorldEdit's snapshots
- Execute a command... normally, or let console execute it, or make player OP for a sec.
- Broadcast a list of messages
- Bankrobber, cannot be looted, until looter is killed
- TODO: Permission reward
- TODO: Lightning reward
- TODO: Fireworks reward
- Score reward
Notes
Protection
- You can't access Treasure Chests that are protected by other plugins.
Unless you use theignore-protectioncommand. - You can't break, burn or blow up Treasure Chests.
Unless you use thedeletecommand.
Fake Inventories
- Players always see a personal "fake inventory" to prevent others from stealing.
This "fake inventory" is temporary. So don't expect something like a private chest. - Players also see a "fake inventory" with shared treasures. But it's not personal. First come, first serve!
- Use the
peekcommand to open the real inventory.
Ranks
- Use lower-case letters, in the configuration and permissions. Also see the How-To page.
TODO
- Fix issues if there are any.
- Add features when issues are fixed.

-
View User Profile
-
Send Message
Posted Apr 24, 2012@Mtihc
eh i know how that is. im sure ull get back into your groove eventually, i just hope its soon xD
-
View User Profile
-
Send Message
Posted Apr 24, 2012@Ceress
Thanks for understanding.
I might get some of my motivation back soon. I've created a plugin called RewardFactory (not published yet). I've talked about this before. The plugin will allow you to give "all kinds of rewards". Like, items, money, exp, fly-for-X-seconds, teleport-for-X-seconds.... etc etc etc.
I want to link this plugin to RewardFactory... so that "treasures" can also be rewards from the RewardFactory.
I am a little bit more hopeful again. But I don't want to give you false hope ;)
I would still be happy to hand-over this plugin to another developer. That would be best for everyone i think.
-
View User Profile
-
Send Message
Posted Apr 23, 2012Eh, interest comes and goes, Mtihc. Most of us know how that goes. Thanks for putting the source up, though! I'm no coder, so I'm hoping someone will pick up where you left off. :)
-
View User Profile
-
Send Message
Posted Apr 23, 2012This plugin is amazing! Me and my server love it. Thank you for making this :)
-
View User Profile
-
Send Message
Posted Apr 23, 2012@QBcrusher
Of course, I should be fixing the error. But... I can't find the motivation anymore.
A couple of weeks ago, I was still hopeful that I would become motivated again. But as time goes by, I start to realize the motivation isn't coming back.
-
View User Profile
-
Send Message
Posted Apr 23, 2012@ryanwagner
you have the same error code as me, so if u mess with the source and get it workin for ya, send the link my way please if u dont mind
-
View User Profile
-
Send Message
Posted Apr 22, 2012@QBcrusher
It's just that somebody asked for the source code.
-
View User Profile
-
Send Message
Posted Apr 22, 2012@Mtihc
i know this probably sounds stupid as hell, but i dont know what to do with that link lol
-
View User Profile
-
Send Message
Posted Apr 21, 2012Sorry I'm so in-active.
I will put a link to github on the main page.
-
View User Profile
-
Send Message
Posted Apr 20, 2012if only the plugin was GNU and the source was provided.... then some of us who know how to help could actually be helping to correct the errors.
if only.....
-
View User Profile
-
Send Message
Posted Apr 20, 2012Starting to get the following error. As far as I can tell this may be related to a bug where it is only a single chest and i thinks it is a double.
2012-04-20 10:43:34 [SEVERE] Could not pass event InventoryOpenEvent to TreasureChest
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at org.bukkit.craftbukkit.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:479)
at net.minecraft.server.EntityPlayer.openContainer(EntityPlayer.java:503)
at org.bukkit.craftbukkit.entity.CraftHumanEntity.openInventory(CraftHumanEntity.java:183)
at me.ellbristow.ChestBank.ChestBankListener.onPlayerInteract(ChestBankListener.java:60)
at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:176)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:287)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636)
at net.minecraft.server.Packet15Place.handle(SourceFile:39)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at net.minecraft.server.TileEntity.getOwner(TileEntity.java:131)
at org.bukkit.craftbukkit.inventory.CraftInventory.getHolder(CraftInventory.java:420)
at org.bukkit.block.DoubleChest.getLeftSide(DoubleChest.java:21)
at com.mtihc.minecraft.treasurechest.events.ChestOpenListener.onInventoryOpen(ChestOpenListener.java:160)
at sun.reflect.GeneratedMethodAccessor422.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 22 more
-
View User Profile
-
Send Message
Posted Apr 20, 20124/20/2012 6:44:04 AM [SEVERE] Could not pass event PlayerInteractEvent to TreasureChest 4/20/2012 6:44:04 AM org.bukkit.event.EventException 4/20/2012 6:44:04 AM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) 4/20/2012 6:44:05 AM at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 4/20/2012 6:44:05 AM at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) 4/20/2012 6:44:05 AM at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:176) 4/20/2012 6:44:05 AM at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:287) 4/20/2012 6:44:05 AM at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636) 4/20/2012 6:44:05 AM at net.minecraft.server.Packet15Place.handle(SourceFile:39) 4/20/2012 6:44:05 AM at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 4/20/2012 6:44:05 AM at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 4/20/2012 6:44:05 AM at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) 4/20/2012 6:44:05 AM at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 4/20/2012 6:44:05 AM at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) 4/20/2012 6:44:05 AM at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) 4/20/2012 6:44:05 AM at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 4/20/2012 6:44:06 AM Caused by: java.lang.NullPointerException 4/20/2012 6:44:06 AM at com.mtihc.minecraft.treasurechest.events.ChestOpenListener.addItemsToChest(ChestOpenListener.java:219) 4/20/2012 6:44:06 AM at com.mtihc.minecraft.treasurechest.events.ChestOpenListener.onPlayerInteract(ChestOpenListener.java:153) 4/20/2012 6:44:06 AM at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source) 4/20/2012 6:44:06 AM at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 4/20/2012 6:44:06 AM at java.lang.reflect.Method.invoke(Unknown Source) 4/20/2012 6:44:06 AM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) 4/20/2012 6:44:06 AM ... 13 more 4/20/2012 6:45:41 AM [SEVERE] java.net.SocketException: Connection reset by peer: socket write error 4/20/2012 6:45:41 AM [SEVERE] at java.net.SocketOutputStream.socketWrite0(Native Method) 4/20/2012 6:45:41 AM [SEVERE] at java.net.SocketOutputStream.socketWrite(Unknown Source) 4/20/2012 6:45:41 AM [SEVERE] at java.net.SocketOutputStream.write(Unknown Source) 4/20/2012 6:45:41 AM [SEVERE] at java.io.BufferedOutputStream.write(Unknown Source) 4/20/2012 6:45:41 AM [SEVERE] at java.io.DataOutputStream.write(Unknown Source) 4/20/2012 6:45:41 AM [SEVERE] at net.minecraft.server.Packet51MapChunk.a(Packet51MapChunk.java:184) 4/20/2012 6:45:41 AM [SEVERE] at net.minecraft.server.Packet.a(Packet.java:110) 4/20/2012 6:45:41 AM [SEVERE] at net.minecraft.server.NetworkManager.g(NetworkManager.java:122) 4/20/2012 6:45:41 AM [SEVERE] at net.minecraft.server.NetworkManager.d(NetworkManager.java:272) 4/20/2012 6:45:41 AM [SEVERE] at net.minecraft.server.NetworkWriterThread.run(SourceFile:99)
-
View User Profile
-
Send Message
Posted Apr 19, 2012so does anyone know why my chest file wouldnt update from 1.1 to 1.2?
-
View User Profile
-
Send Message
Posted Apr 18, 2012Doesnt work... At all as stated :( When someone else loots the chest it is gone for everyone . Help?
-
View User Profile
-
Send Message
Posted Apr 18, 2012Also, in Version 7 if someone opens the chest and then someone else opens it. They get the error, but see the other persons stuff.
UPDATE: they can see and take the other persons stuff but it doesn't dupe. Instead both people can only get the 1 version of the chest. aka 1 set of loot not 2
verified this bug exist with and without alphachest
Used Bukkit 1.2.5 R1
UPDATE2: if 1 person has looted the chest and then another person comes to loot it they both see the 2nd persons chest. Thus the 1st person can steal the items from the 2nd person if he grabs them before the other person does.
-
View User Profile
-
Send Message
Posted Apr 18, 2012@Rtzon
Confirmed. Similar Error when both AplhaChest and TreasureChest are present AND the TreasureChest is a double chest.
2012-04-18 10:07:52 [SEVERE] Could not pass event InventoryOpenEvent to TreasureChest
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at org.bukkit.craftbukkit.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:479)
at net.minecraft.server.EntityPlayer.openContainer(EntityPlayer.java:503)
at net.sradonia.bukkit.alphachest.commands.ChestCommands.performChestCommand(ChestCommands.java:41)
at net.sradonia.bukkit.alphachest.commands.ChestCommands.onCommand(ChestCommands.java:26)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at net.minecraft.server.TileEntity.getOwner(TileEntity.java:131)
at org.bukkit.craftbukkit.inventory.CraftInventory.getHolder(CraftInventory.java:420)
at org.bukkit.block.DoubleChest.getLeftSide(DoubleChest.java:21)
at com.mtihc.minecraft.treasurechest.events.ChestOpenListener.onInventoryOpen(ChestOpenListener.java:160)
at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 19 more
-
View User Profile
-
Send Message
Posted Apr 17, 2012hi, all my treasure chests are empty after i updated to 1.2. plz help. thanks
-
View User Profile
-
Send Message
Posted Apr 15, 2012Treasurechest exception
Thanks
-
View User Profile
-
Send Message
Posted Apr 15, 2012I have AlphaChest and TreasureChest installed on my server. This is the error I get when I do /chest:
http://pastie.org/3794838
-
View User Profile
-
Send Message
Posted Apr 13, 2012I wanted to alert you that I am experiencing Pendar2's problem identically. I implemented each of your suggestions, but to no avail. I am using an up-to-date version of PEX, as well as TreasureChest. I have also attempted to evade this error by using the /treasurechest ip command. Although it informs me that the chest is now accessible regardless of conflicting protection plugins... it isn't.
Thank you for your time. missoutre