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 29, 2012@Faldonboy
I have uploaded 8.3.5 (awaiting file approval)
I changed the rank system. You can now configure ranks. Read the changelog when it's available for download.
The issue you mentioned about the permission. When you remove a permission... the player still has it! Untill you restart the server.
I have that problem too. But it's not just TreasureChest. It's also with permissions like
bukkit.commands.op.give. This is not my problem.The teleportation issue sucks. Although I don't think it has anything to do with the delay...
I just need a better "random, but safe teleport" algorithm.
I will add this to my TODO list. And also the lightning reward.
Not sure what my next step will be. But it's noted!
-
View User Profile
-
Send Message
Posted Jul 29, 2012@Faldonboy
Gotcha. I read your post about ranks. And I understand and agree.
About that issue. I noticed that myself when I was testing.
When I reloaded the server it was fixed.
It might have something to do with the fact that VIP inherits from Member etc etc. I mean... maybe you still have permission "treasurechest.rank.vip". Because then you can still open Member-chests.
Anyway, if that's the issue, that will change when I update. Like you said, the permissions should not inherit from eachother.
Lightning reward will be added soon too :)
-
View User Profile
-
Send Message
Posted Jul 27, 2012Player variable works great :D Already have a few chests that give special permissions when you open them. :)
Also, can you take a look at my suggestion for more ranks a few posts down?
Edit 1: I've run into a small problem with one of the ranks, I was testing them out on my test server trying to figure out how to integrate them into some quests and gave myself treasurechest.rank.member permissions. When I was done testing I removed the permission from myself but I'm still able to open chests that are for member ranks only, I double checked all of my permission files to make sure I didn't accidently have the permission in another group and I de-opped myself to see if that was the problem but neither fixed it, reloading the plugin and the server didn't help either. It's only the member rank I'm having a problem with though. The other ranks work as they're supposed to when I give/take the permissions away. Can't figure it out and there aren't any errors coming up.
-
View User Profile
-
Send Message
Posted Jul 27, 2012@ProfessorGazlow
Thank you for mentioning it.
I guess I should find out the exact behavior of a chest.
Now, it can't be opened when any block is on top of it.
So I guess wooden signs are exceptions. Also torches. I guess "attachables".
Just thinking out loud.
The chest probably won't work if it's in the water! Not tested yet.
Time to fix it.
I'm gonna talk about this with Codisimus from Phatloots.
-
View User Profile
-
Send Message
Posted Jul 26, 2012Eh. Just thought I'd note, if you put a sign above a chest it won't work anymore. I updated and all my chests stopped working and ended up removing them all trying to fix it. Turns out just the signs labeling some chests.
I know this is from the most recent update so they can't be opened with a block above. Just thought I would point it out.
Besides that though, awesome work and still loving the plugin.
-
View User Profile
-
Send Message
Posted Jul 25, 2012@Mtihc
Hmm, not sure what the cause of it is but when I set the delay to 0 on a tp reward it often leaves me in the ground, in a wall or even in the ceiling.
Edit 1:
Also, just a suggestion. If/when you get around to letting us make our own ranks, have it be a config option not an in-game command, also don't force the ranks to inherit from the previous ranks like they are currently(Don't force rank 2 to be able to open rank 1 chests) let it be a config option that lets us pick which chests they can open.
Edit 2: Lightning reward! Select the spot and when someone opens the chest, BOOM lightning strike on the defined spot. Imagine opening a chest to have lightning shoot down in a circle all around you.
-
View User Profile
-
Send Message
Posted Jul 25, 2012@Faldonboy
Haha nice! I should add the delay option to every reward.
I miss it at a bunch of rewards :)
I also want to add a velocity option to the spawn reward.
So you can launch arrows (and mobs and stuff) in a direction with some speed... when they spawn.
Sounds like I have to make a TODO-list.
That's not a good sign ;)
-
View User Profile
-
Send Message
Posted Jul 25, 2012Grahhhh, it's 4:30 am for me and I haven't slept yet because I'm having to much fun playing with the command and tp rewards! :P I like the delay you can set for the tp, I can see some funny situations one could make using that
-
View User Profile
-
Send Message
Posted Jul 25, 2012I got a feeling they forgot to approve the last update :/
We've been waiting more than 12 hours
-
View User Profile
-
Send Message
Posted Jul 25, 2012@Faldonboy
First of all.. yes, the order of the rewards is persistant. So you can make command sequeneces.
About Edit 1: Good point.
It's possible to execute the command as a player. But... to make it work even better... I need to add what you said. Something like a variable %player%
About Edit 2: I had the same idea :)
About Edit 3: Random stuff is possible. But I will do that later I guess.
-
View User Profile
-
Send Message
Posted Jul 24, 2012@Mtihc
Well, I have a question then, First, can you put more then one of the same reward types on one chest? Say 3 different command rewards? And if you can are the rewards given out in the order they're put onto the chest? If so you could use the command reward to give permissions by setting a series of commands to be run when you open the chest. I'm not sure how all of the different perm plugins work but I know this would work for bPermissions. Example for bPermissions: /world (worldname) -> /user (player) -> /user addperm (permission)
Edit 1:
That example is assuming the chest can tell the name of the player and fill it in wherever you specify, probably through the use of a special tag(perhaps %p like many other plugins use?) so it would be in the case of my server /world larkspur -> /user %p(would fill it in with the name of the player opening the chest) -> /user addperm multiverse.access.quest
Edit 2:
on a side note, any chance you can make it so we can specify a delay on command rewards? IE: the command doesn't run until after the specified time has passed(in ticks or seconds)
Edit 3: K, last edit I promise! This idea sounds complicated and confusing in my head even, but would it be possible to add a chest mode like the random one for rewards? So it picks a specified random number of rewards out of the ones currently on the chest?
-
View User Profile
-
Send Message
Posted Jul 24, 2012@Faldonboy
Cool! It's gonna be hard to top the command reward xD
I can give permissions. But it's hard to save the permission, due to all the different permission plugins. So it can be something like the Fly reward. Just a temporary reward.
-
View User Profile
-
Send Message
Posted Jul 24, 2012Amazing! Can't wait for the next version now! :) The command reward on it's own will make this indirectly support a lot of other plugins For example, mcMMO, Heroes, MagicSpells etc. It'l let you grant spells or experience in those plugins when you find chests.
Another suggestion would be a "permission" reward that grants a specified permission when you open the chest. I imagine that one would be a bit harder since not all permission plugins support individual player permissions
-
View User Profile
-
Send Message
Posted Jul 24, 2012@Faldonboy
And I added the potion reward, and command reward in 8.3.2
Keep the good idea's coming! :)
Still not sure about the rank stuff yet.
-
View User Profile
-
Send Message
Posted Jul 24, 2012@Faldonboy
I just added the teleport reward in 8.3.1
Potion effect reward and command reward sound cool.
I will put the extra rank stuff on the backburner for now.
-
View User Profile
-
Send Message
Posted Jul 23, 2012Any chance you can make it so we can add more ranks ourselves?
Also, a teleport reward type would be wonderful if it's possible. As would a "potion effect" reward, would be great to be able to trap chests with poison or blindness, etc.
Was also wondering if maybe you could add a "command" reward type would be able to run a command(or series of commands) as either the player, op override or console.
-
View User Profile
-
Send Message
Posted Jul 22, 2012I forgot to mention the coolest special reward of all.
The spawn reward!
-
View User Profile
-
Send Message
Posted Jul 22, 2012@Technius
Yippee!
-
View User Profile
-
Send Message
Posted Jul 22, 2012@Mtihc
Oh, thanks so much! I just had the "*" permission and I wasn't opped. xD
-
View User Profile
-
Send Message
Posted Jul 22, 2012@Technius
Oeh oeh oeh!
Make sure you are OP !