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 Sep 10, 2012Are there plans to get this mod to 1.3.1 compatibility? I need it for a server I have in beta waiting to launch still on 1.2.5
-
View User Profile
-
Send Message
Posted Sep 3, 2012@Mtihc
I don't think the plugin works with written books. It eats the book and makes it blank with a blank title. Is there a workaround to this?
-
View User Profile
-
Send Message
Posted Sep 3, 2012@Mixon87
Check your spelling...
in the command
in the config
in the permission
The permission must be lowercase (small letters)
If you still have issues. Show me the spelling : )
-
View User Profile
-
Send Message
Posted Sep 2, 2012Very odd... /tchest add rank [rank] is not working for me... Added rank in config, also this is rank in permissions...
It's written: that rank is not exists...
-
View User Profile
-
Send Message
Posted Aug 28, 2012@Adrenalineq
What's wrong with the current method?
By the way, I'm not storing any players at all. Not sure what youre talking about.
-
View User Profile
-
Send Message
Posted Aug 27, 2012@Mtihc
hmmm do you think about a find better method to store big amount of players? example at sqlite, h2 etd.. ? :)
-
View User Profile
-
Send Message
Posted Aug 27, 2012Wicked plugin, exactly what I need. Can't wait until you get the written book thing sorted out, but nice work thusfar!
-
View User Profile
-
Send Message
Posted Aug 26, 2012OOOOOOOOOooooooo, yeah, I'll get this plugin too. ;)
-
View User Profile
-
Send Message
Posted Aug 23, 2012@PuneyWhiteBoy
Let me rephrase what I said.
Looks like he made a treasure chest (place a chest and do /tchest set).
And then placed another chest next to it.
The plugin doesn't like that. (basically a bug)
When you make a doublechest, place both chests... and THEN do /tchest set.
On a side note.
When you want to change that chest. Click it with a chest in your hand. It will open the real inventory instead of the "fake inventory".
-
View User Profile
-
Send Message
Posted Aug 23, 2012I thought there supposed to be large chests?
-
View User Profile
-
Send Message
Posted Aug 23, 2012@PuneyWhiteBoy
Looks like you made a treasure chest. And then placed another chest next to it. Making it a double chest. Or something
-
View User Profile
-
Send Message
Posted Aug 23, 2012For some reason i keep getting this error when ever some one opens a chest:
[SEVERE] Could not pass event PlayerInteractEvent to TreasureChest org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:355) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:649) at net.minecraftserverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:94) at net.minecraft.server.Packet15Place.handle(SourceFile:58) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ClassCastException: org.bukkit.block.DoubleChest cannot be cast to org.bukkit.block.Chest at org.bukkit.block.DoubleChest.getWorld(DoubleChest.java:33) at org.bukkit.block.DoubleChest.getLocation(DoubleChest.java:29) at com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.onPlayerInteract(TreasureManager.java:202) at com.mtihc.minecraft.treasurechest.v8.core.TreasureChestListener.onPlayerInteract(TreasureChestListener.java:29) at sun.reflect.GeneratedMethodAccessor91.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:330) ... 17 more
-
View User Profile
-
Send Message
Posted Aug 22, 2012@do6star
Don't bother. I know how make a work-around.
But when Bukkit finally has a proper API for books.
Then, I'm gonna have to make a work-around for the work-around.
-
View User Profile
-
Send Message
Posted Aug 22, 2012@Mtihc
I use this plugin to load and save text files into the books for easy duplication. Maybe you can make it work with that?
http://dev.bukkit.org/server-mods/books-without-borders/#comments
-
View User Profile
-
Send Message
Posted Aug 22, 2012@Phicksur
I know, I'm waiting for Bukkit to add a proper API for books.
-
View User Profile
-
Send Message
Posted Aug 22, 2012Would it be possible to update the plugin to 1.3.2? I am running it on my adventure-mode server and it works ok for most things, but for written books it won't save the metadata explaining which book it is, so it always defaults to a blank written book.
-
View User Profile
-
Send Message
Posted Aug 19, 2012@The_Micahel
That's already in there.
@joshp97
Try permissiion "treasurechest.access.normal" and "treasurechest.access.unlimited."
Also... use command /tchest ip.... to make it ignore the worldguard protection.
If you don't want to use /tchest ip... every time you make a new chest... use the configuration to set ignore-protection to true
-
View User Profile
-
Send Message
Posted Aug 18, 2012@Mtihc
hey ive got a small problem ice added the permissions to my con fig file but still it deosnt let poeple open the chests, it says something like "you are not allowed to open that in here" is this a world gaurd problem or am i doing the permissions wrong. The one i used was treasurechest.access. I you could help it would be much appreticated plus i love the plugin my server revoles around it so this is quite a big issue. thank you.
-
View User Profile
-
Send Message
Posted Aug 18, 2012hey ive got a small problem ice added the permissions to my con fig file but still it deosnt let poeple open the chests, it says something like "you are not allowed to open that in here" is this a world gaurd problem or am i doing the permissions wrong. The one i used was treasurechest.access. I you could help it would be much appreticated plus i love the plugin my server revoles around it so this is quite a big issue. thank you.
-
View User Profile
-
Send Message
Posted Aug 17, 2012Update?
Also could you make it able to give you a certain potion effect when you opne it? (configurable)