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 11, 2012@Mtihc
Any chance that error in the logs will be fixed anytime soon (Could not pass event InventoryOpenEvent to TreasureChest)? My logs are still jam packed with it. I'm now on craftbukkit 1.2.5-R1.2
-
View User Profile
-
Send Message
Posted Apr 8, 2012Is the source available for this plugin?
-
View User Profile
-
Send Message
Posted Apr 7, 2012Is this able to give economy rewards by looting chest? I did not see it say it could or could not.
-
View User Profile
-
Send Message
Posted Apr 6, 2012Can you set up a Ticket page for this mod? I would like to keep track of the issues; make sure they don't get lost in the many comments.
-
View User Profile
-
Send Message
Posted Apr 3, 2012@Mtihc
I'm on the latest, 1.2.4-R1.0. I will be going to 1.2.5 tomorrow when it's released to the public...
-
View User Profile
-
Send Message
Posted Apr 3, 2012@Zombiemold
I read your post. It might prove to be tip that will lead to the solution. ;)
-
View User Profile
-
Send Message
Posted Apr 3, 2012@jdastrup
That's a good work-around. But I'm not satisfied with... how the feature works. Expect an update ;)
About that error you get. It looks a little different to me. (the "caused by" section is important)
But I'm going to tell you the same thing I told ChriisTehGamer12 anyway:
I think you need to update bukkit. Which version do you have? You need at least 1.2.4-R1.0
Let me know if that helps please?
(I should also test myself... which version of Bukkit is the oldest working version... but I think it's 1.2.4-R1.0 like I said)
-
View User Profile
-
Send Message
Posted Apr 3, 2012Just an update, I still love this plugin and continue to use it, by coming up with a workaround for the death-during-use problem. Some of my treasure chests are at the end of an obstacle course which has lava, which means people might be on fire when they get to the end. So, I put the treasure chest at the end of a long hallway and they have to walk through water to get there, which extinguishes the fire so they wont die. Since modifying the physical access to the chest, zero problems so far!
On another note, my console gets spammed with the same messages ChriisTehGamer12 mentioned below. No adverse reactions in gameplay that I can notice, but it fills up the logs with:
2012-04-03 09:44:56 [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:478) 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:87) at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) 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:175) 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:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 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.GeneratedMethodAccessor220.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 22 more
-
View User Profile
-
Send Message
Posted Apr 2, 2012Chestbank has an elegant solution to this entire problem, and though it doesn't quite do what yours does (Chestbank functions like a bank) it does not suffer from the issue this one has (2 people opening the same chest) as the chest that is being clicked, is not actually the one that is opened. It is essentially triggering a reference to yml file, with the contents listed, based on what was in the chest.
No problems with Chestbank, it might be worth taking a look at, code wise.
-
View User Profile
-
Send Message
Posted Apr 2, 2012@jdastrup
Thanks again for reporting that bug.
Codisimus, the developer of PhatLoot, experienced the same problem.
I just wanted to say that... the feature isn't what I was hoping it would be.
(regardless of that bug)
Because players can still open the chest, when another player is already looking in it.
But the "new player's items" are not added yet. Which helps alot in some situations.
But you still have to be careful for players that want to ninja all your items!
-
View User Profile
-
Send Message
Posted Apr 1, 2012Kindof disappointing that there's no response to my bug-report yet.
-
View User Profile
-
Send Message
Posted Mar 31, 2012@ChriisTehGamarh12
@ChriisTehGamarh12
Actually it should work for you too. I'm not sure why it's not working.
Yes you need a permissions plugin.
I think you need to update bukkit. Which version do you have? You need at least 1.2.4-R1.0
-
View User Profile
-
Send Message
Posted Mar 30, 201201:13:04 [SEVERE] Could not pass event InventoryOpenEvent to TreasureChest org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:441) at org.bukkit.craftbukkit.event.CraftEventFactory.callInventoryOpenEvent (CraftEventFactory.java:454) at net.minecraft.server.EntityPlayer.openContainer(EntityPlayer.java:503 ) at net.minecraft.server.BlockChest.interact(SourceFile:275) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j ava:294) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:722) 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:116) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7 8) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NoClassDefFoundError: org/bukkit/block/DoubleChest at com.mtihc.minecraft.treasurechest.events.ChestOpenListener.onInventor yOpen(ChestOpenListener.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.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.ja va:301) ... 14 more Caused by: java.lang.ClassNotFoundException: org.bukkit.block.DoubleChest at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 20 more
also i see. i got an error ._.
-
View User Profile
-
Send Message
Posted Mar 30, 2012also.... Do we need permissions/groupmanager?
-
View User Profile
-
Send Message
Posted Mar 30, 2012._.'' ohhhh, so since i created it, i cant see the items, but when a player opens it, it should work? ill get one friend to test it. I thought that i should be able to see the items as well.
-
View User Profile
-
Send Message
Posted Mar 30, 2012@ChriisTehGamarh12
You don't get a message or anything? Also look in console.
Is it empty for every player?
I'm not sure what the problem is.
-
View User Profile
-
Send Message
Posted Mar 30, 2012@ChriisTehGamarh12
From that moment on.. it's a Treasure Chest.
A Treasure Chest should be empty.
But when a player opens it "for the first time"... the items are added. So then it's not empty.
To you, it looks like they disappear. Maybe you already found that T-Chest ?
Edit: I guess you haven't found it yet. Cuz you just created it ahah
-
View User Profile
-
Send Message
Posted Mar 30, 2012hey, when i put stuff in a chest and types: /tchest set, all of the content just dissapears... why is that?
-
View User Profile
-
Send Message
Posted Mar 30, 2012@jdastrup
Maybe I should make my own viewer-list system.
That was my original plan. Before I knew bukkit already has that system.
Let's give it some time. Maybe we get a reply :)
-
View User Profile
-
Send Message
Posted Mar 30, 2012Here's the bug report.