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-protection
command. - You can't break, burn or blow up Treasure Chests.
Unless you use thedelete
command.
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
peek
command 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.
@jdastrup
I just tested it with CB #02127
Same issue. I got that message you mentioned.
(although i was still able to access the chest, a little weird, but not important)
I will report a bug. Let's see what they say.
PS: This is how i tested:
@jdastrup
Wow, looks like this is a Bukkit issue... because
I check how many viewers the chest has. Before allowing another viewer.
This is a Bukkit function, so to speak.
I haven't tested it myself. But maybe it helps, if you download a later version:
http:dl.bukkit.org/downloads/craftbukkit/
Otherwise, I think we should report a bug to the bukkit team.
I'm gonna test it now, with the latest Dev build. Let's see if it works.
@jdastrup
Yup, this needs a fix/update. Thank you for mentioning it.
I was thinking of a time-out. But that's not a good idea. (I can't close the inventory of a player, he has to do it himself). I will not go into details more :)
You first suggestion is the best!
Just check for players' death.
I will update soon.
I'm having a problem. If a player is looking in a treasure chest, and then dies (burns, starves, killed, etc) while still in it, nobody else can use the treasure chest. It says "someone else is currently using it.." The only way to fix it is to delete it and recreate it. Can this be updated to somehow check for player deaths, and reset, or at least time-out if a player is taking too long, which might fix it, too?
@Pendar2
Hmm weird. Maaaybe you should update PEX.
But you can also try this:
treasurechest.access.treasure
treasurechest.access.unlimited
Because... treasurechest.player... grants: treasurechest.access
Which grants treasurechest.access.treasure and .unlimited.
So try updating PEX.
Or try to add those 2 permissions.
You don't have permission to access this Treasure Chest. That's the message that comes up in the chat for a player that has the perm treasurechest.player . The chest wasn't in a protected area. I am using the plugin LWC and Craftbukkit version is the new recommended build. I'm also using treasurechest 7 and permissionsex for a perm plugin. No errors in the console. What am I doing wrong, any ideas?
@soddaminsane
Yay! Glad it's working now :)
@Mtihc
Thanks for the link :) working perfectly and just so happens to be exactly what im looking for ^_^
@soddaminsane
Download CraftBukkit 1.2.4-R-0.1
http://dl.bukkit.org/downloads/craftbukkit/
2012-03-27 02:20:17 [SEVERE] Could not load 'plugins/TreasureChest.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:201) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:189) ... 7 more
i got this error at startup, this plugin would be amazing for my easter event if i could get it to work lol.
NPE on build 2117. TreasureChest 7.0.
25.03 16:57:37 [Server] INFO Caused by: java.lang.NullPointerException 25.03 16:57:37 [Server] INFO at com.mtihc.minecraft.treasurechest.persistance.ChestsYaml.values(ChestsYaml.java:14) 25.03 16:57:37 [Server] INFO at com.mtihc.minecraft.treasurechest.events.ChestOpenListener.onContainerBlockOpen(ChestOpenListener.java:73) 25.03 16:57:37 [Server] INFO at com.mtihc.minecraft.treasurechest.events.ChestOpenListener.onInventoryOpen(ChestOpenListener.java:171)
@iAutolycus
Hmmm. Can you give me the full error?
You should delete the file server.log. (because it's probaby superfull!)
Then, (re)start your server.
And then you have a nice... and clean server.log file.
You will be able to find the error easily :)
Hi, I run CB 1.2.3 server and when I place a chest and then remove it I get [SEVERE] could not pass event BlockBreakEvent to Treasure Chest error in my CMD? Anyone wanna help me out with this please?
Just wanted to let everyone know...
I tested this plugin with Minecraft 1.2.3 and 1.2.4. Both work fine!
@Dayshade90926
Yes, that is exactly what this plugin does!
All you have to do is place a chest (or dispenser/furnace/brewingstand)
Put items in it
Look at it
And execute /tchest set
If you want that a player can take items again after a week..
You can do /tchest setforget 7 0 0 0
An unlimited chest is different. An unlimited chest can be opened more than once. And items will be in it every time. It doesn't care about if a player has opened it before.
Hey, I haven't watched any tutorials, but I'm wondering:
Could I make an unlimited chest that can be only ever be opened by a player once, but can be also be opened once by each player? This way, each player could loot a certain chest once, and never again.
@silentdojo
It says there's something wrong
at net.minecraft.server.InventoryCrafting.getOwner(InventoryCrafting.java:47)
The first line that's about my code says I should look at line 154 of OpenChestInventory.jar
But there's nothing weird going on there.
This might be a bug in Bukkit. Or maybe there is another chest-plugin interfering?
When do you get this error? I want to test this with the latest development build of Bukkit (if dl.bukkit.org is up again). Or maybe you can test it. Because as far as I know, I don't get that error.
Edit: Stupid question "When do you get this error?" Of course you get this error when you open an inventory.
But maybe you can tell me more anyway
@Mtihc
I will retest this, as you may be right. But: http://pastebin.com/XyfASzNL
To downloaded the latest Bukkit version, go to: dl.bukkit.org and click alternate versions
If the site is down (which is the case, atm)
You can download it from my google docs. 1.2.3 R.03
@silentdojo
Sorry I keep spamming :P But I feel like im not being clear enough.
In your explenation. You don't mention that player 2 loots all the items.
That is an essential part of the story! :)
Because I think that he did not loot everything. And thats why you see all the items again.