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 Jul 31, 2013@Hangar
Thanks. I will look into it. https://github.com/Mtihc/TreasureChest/issues/61
-
View User Profile
-
Send Message
Posted Jul 30, 20138.4.3 on latest bukkit dev build:
23:52:23 [SEVERE] Could not pass event PlayerInteractEvent to TreasureChest v8.4.4
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.maxgamer.QuickShop.Shop.ShopManager.canBuildShop(ShopManager.java:225)
at org.maxgamer.QuickShop.Listeners.PlayerListener.onClick(PlayerListener.java:113)
at sun.reflect.GeneratedMethodAccessor260.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:425)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:35)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.v1_6_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:192)
at net.minecraft.server.v1_6_R2.PlayerInteractManager.dig(PlayerInteractManager.java:108)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:538)
at net.minecraft.server.v1_6_R2.Packet14BlockDig.handle(SourceFile:46)
at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.IllegalStateException: CraftChest is not a chest but is instead CraftBlock{chunk=CraftChunk{x=35z=44},x=565,y=114,z=716,type=CHEST,data=2}
at org.bukkit.craftbukkit.v1_6_R2.block.CraftChest.getInventory(CraftChest.java:41)
at com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.getLocation(TreasureManager.java:74)
at com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.getTreasureChest(TreasureManager.java:464)
at com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.onPlayerInteract(TreasureManager.java:229)
at com.mtihc.minecraft.treasurechest.v8.core.TreasureChestListener.onPlayerInteract(TreasureChestListener.java:56)
at sun.reflect.GeneratedMethodAccessor271.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:425)
... 27 more
-
View User Profile
-
Send Message
Posted Jul 30, 2013Glad to see this mod still going mate, going to be a big part of my dungeons and such for our server! thankyou!
-
View User Profile
-
Send Message
Posted Jul 29, 2013Hey is there a way to when a player opens a chest a fire works shoots up?
-
View User Profile
-
Send Message
Posted Jul 29, 2013Big update coming today: 8.4.4. I have been fixing bugs and merging pullrequests like a mofo.
If you are interested. You can read about the big new feature. Thanks to basicmark. https://github.com/Mtihc/TreasureChest/commit/9cd6791b7592b1211621a56a9f86818307c217b5 I will update this page, and commands page.... to explain the new feature... soon.
We will also have Unlimited dispensers/droppers. Shared single-inventory treasures. And more. Stay tuned.
Have a nice day!
-
View User Profile
-
Send Message
Posted Jul 28, 2013@MedievalMinecrafters
Hooking up with epic boss.... it does sound interesting. But I think it's better to have a new plugin for that. I'm sorry. Don't count on me for that.
The random stuff... we have command /tchest random. But it might not be good enough for you. Maybe you want to have a look at Phatloots plugin.
-
View User Profile
-
Send Message
Posted Jul 27, 2013i was thinking, Maybe a lot of work, but hook this plugin up with epic boss, because my server uses it intensely to where, if you kill a boss, a treasure chest would spawn in a location set, with random loot, but also, if i were to set a chest, could i set various drops so like if you click on it once, example you would get 3 sticks a sword and boots, then wait 5 minutes click on it again and there is food wheat and a potion? could this do this, like make it so i can randomize what spawns, but not like /tr randomise where it spawns what ever but to where i can make what i want to spawn inside? if this makes sense :/ i tryed to explain this as best as possible but it is late where i live so im tired? pls help :)
-
View User Profile
-
Send Message
Posted Jul 27, 2013@ryanthemagi
I created an issue for it... on github.com. So it's noted!
-
View User Profile
-
Send Message
Posted Jul 27, 2013This is such a great plugin. I use it extensively on my server.
I was wondering if there was a way to make it so when a player attempts to access a ranked chest to which they don't have the perms to, to make the error message "You do not have permission to use this" instead of "You require one of the following permissions, to open that treasure: X." I'd prefer it if my server members didn't know the exact node that they needed to open it.
Thank you!
-
View User Profile
-
Send Message
Posted Jul 26, 2013TreasureChest 8.4.3. Hooray! Using a stupid, but effective workaround for server-crash bug.
-
View User Profile
-
Send Message
Posted Jul 26, 2013Everybody needs to vote on this issue: https://bukkit.atlassian.net/browse/BUKKIT-1929
-
View User Profile
-
Send Message
Posted Jul 26, 2013@macman73
Thank you for this comment. That issue has been haunting a lot of us. Now we can reproduce the problem, thanks to you. This means we can test properly.
I will be looking into this. And I will report back here https://github.com/Mtihc/TreasureChest/issues/53
-
View User Profile
-
Send Message
Posted Jul 25, 2013Would love to see the plugin get updated :D
-
View User Profile
-
Send Message
Posted Jul 22, 2013I LOVE THIS PLUGIN SO MUCH! My Towny kingdom for an update! My players miss their dungeon loots!
- _W
-
View User Profile
-
Send Message
Posted Jul 21, 2013Please make this compatible with RPGitems: http://dev.bukkit.org/bukkit-plugins/rpg-items/
-
View User Profile
-
Send Message
Posted Jul 17, 2013@macman73
Hey i've got the same problem with treasure chests. what are your other plugins
-
View User Profile
-
Send Message
Posted Jul 17, 2013@WiggleWormz
set worldguard region to /region flag [yourregionname] chest-access allow
-
View User Profile
-
Send Message
Posted Jul 16, 2013Please Update this plugin! or at least... could someone give me an alternative that handles Lore and Custom names please!
Thank you
-
View User Profile
-
Send Message
Posted Jul 13, 2013Please updata, It made my server crash java.lang.StackOverflowError at net.minecraft.server.v1_5_R3.ItemStack.usesData(ItemStack.java:138) at net.minecraft.server.v1_5_R3.ItemStack.setData(ItemStack.java:161) at net.minecraft.server.v1_5_R3.ItemStack.<init>(ItemStack.java:44) at net.minecraft.server.v1_5_R3.ItemStack.cloneItemStack(ItemStack.java:261) at net.minecraft.server.v1_5_R3.Container.clickItem(Container.java:214) at net.minecraft.server.v1_5_R3.Container.a(Container.java:383) at net.minecraft.server.v1_5_R3.Container.clickItem(Container.java:216) at net.minecraft.server.v1_5_R3.Container.a(Container.java:383) at net.minecraft.server.v1_5_R3.Container.clickItem(Container.java:216) at net.minecraft.server.v1_5_R3.Container.a(Container.java:383) at net.minecraft.server.v1_5_R3.Container.clickItem(Container.java:216) at net.minecraft.server.v1_5_R3.Container.a(Container.java:383) at net.minecraft.server.v1_5_R3.Container.clickItem(Container.java:216) at net.minecraft.server.v1_5_R3.Container.a(Container.java:383) etc.
-
View User Profile
-
Send Message
Posted Jul 7, 2013Update it please!