TreasureHunt

TreasureHunt 1.1
- Randomly-Generated Chests - Stationary Chests - Money Distribution - Multiple ItemLists - Excessively Configurable - Excessively Fun -
Find that loot!
Message from Taien
I've officially changed the license to Public Domain. I don't have time to maintain the project anymore, obviously. Sorry guys....hopefully someone will take over for me. If you want me to give you official access to the plugin, PM me. I'll pick someone based on their other plugins' quality. I put a lot of work into this plugin and am sorry to have to do this, but I don't even really play MC anymore since I no longer am in contact with all the people I used to play with. Sorry...
Hello everyone. This is my second released plugin for bukkit, but probably my tenth or twelfth overall.
The purpose of TreasureHunt is to give people even more fun things to do in your server. The plugin allows your worlds to randomly generate chests based on very specific settings that you choose. You can use any number of worlds with this plugin, and each can have a different configuration. :) You can also set up specifically enchanted items to appear in your chests, stationary chests that respawn after an interval (with a bit of randomization), and as many custom item lists as you could ever want - to use a separate item list for each world or even for each stationary chest!
For ALL info on how it works, please see the Plugin Tutorial section. :)
Plugins Supported
- PRIOR TO 1.0: Vault (for economy and permissions)
- 1.0+: Vault (for economy and permissions), WorldGuard and Towny (to prevent chests spawning in certain areas)
Note: If you don't use Vault, ops can still do the admin commands. See command list for details.
Help! I can't get any chests to spawn automatically!
Please see Example Configs. :)
Planned Features (Soon)
- Option to create maps centered at the chest location, fully mapped.
- Suggestions?
Next Version (1.2)
Green = Done Red = Not Done Gold = In Progress
- Add support for Residence.
- Config option ChooseChunkFirst - will tell location selection to choose one chunk to perform all of the spawn checks in. This will potentially cause more failed spawns (meaning the spawn attempt would be cancelled until you hit your random chest chance again), but is designed to help out servers which backup their world on a constant basis. (TreasureHunt needs to check certain conditions in each spawn location. This causes the chunk's modified date to update on the server, although I fail to understand why since it's not actually changing anything. To prevent many chunks being "modified" by TreasureHunt, this option will be added.)
- Command for normal players to find out how many of each type of chest (Common, Uncommon, etc) are currently present in the world.
- Change Damage on EnchantedItems entires to MinDamage and MaxDamage, to give you a chance to assign the spawned item a random damage between those values if you wish.
- Cover error messages with the new message system as well.
- Config option to have messages about chests only displayed within the world they originated in.
- Command to view a list of EnchantedItems entries ingame, /th enchlist. Command to view a list of CustomLists entries and one for WorldLists, /th customlists and /th worldlists.
- RandomGen and GenValue options for EnchantedItems entries, to allow the plugin to randomly assign enchantments to the item instead of using the Effects list to be specific.
- Command to view a list of EnchantedItems entries ingame, /th enchlist. Command to view a list of CustomLists entries and one for WorldLists, /th customlists and /th worldlists.
Known Bugs
- See Ticket section.
Changelog
Version 1.1
- Removed TopChestsByValue config option and converted /tophunters to /top and /top values, which displays by chests or by values respectively. /top command is also aliased as /thtop.
- Fixed a bug with PlayerData loading. /top should no longer reset on server restarts.
- Moved other updates to 1.2 due to PlayerData bug needing a fast release.
Version 1.0
Note About 1.0
Be sure to back up your config prior to updating to 1.0. There are changes to the config structure, and to be honest I am not good at writing conversion methods. The changes will be obvious enough once you see the new version of the config compared to the old version, so you should be able to copy/paste old data directly into the new file once you've got it running.
- New optimization for chest spawning. No more lag when a chest location is being selected!
- Connection to WorldGuard to prevent chests spawning in regions where block breaking and chest access are disabled.
- Connection to Towny to prevent chests spawning in town blocks.
- Config option to set the levels at which chests become Uncommon, Rare, Legendary, and Epic. (Currently they are 1500, 2500, 3500, and 4500 respectively.)
- Custom (named) Item Lists, and an ItemList option for each world as well as each stationary chest. (Worlds will only be able to use itemlists from the WorldLists section; Stationary chests will be free to use WorldLists or CustomLists.)
- Complete rewrite of the way configs are handled so as to prevent the 'where's my config file?' issue. Apparently I've been using an outdated method of config usage. :/
- Config option to choose the block left behind after a chest fades (perviously hardcoded to soulsand). Also the ability to say RETURN instead of a block name to have the block return to what it was before the chest spawned.
- Permission node for starthunt commands, in the format of taien.th.starthunt.world (or *). Also taien.th.admin still covers this.
- Permission node for stationary chest commands, in the format of taien.th.stattool.world (or *). Also taien.th.admin still covers this.
- A command to view a list of the top ten chest-finders, with listings of the total value of the chests they have found, as well as a command to clear the list and a config option whether to display by number of chests found or total value of chests found.
- Finish/fix directional text, so that when a player does /hunt(or uses the tool) it will tell them which direction they need to turn to be facing the chest in addition to the distance. Config option to shut off this function already exists.
-
View User Profile
-
Send Message
Posted Feb 20, 2012@Taien1
Got a test version of TH 0.8 working. Appears to run ok on RB3, but I still need to update my stuff again since bukkit is releasing a new version like every week :p
-
View User Profile
-
Send Message
Posted Feb 20, 2012I'm so excited Taien1 you don't even know! SO PUMPED
I know you already are working on hard on the plugin and have all these features planned, but I was wondering if you could add like a "max amount" into the config for items as another value. I think it would be extremely useful. Like I don't want more than one diamond chestplate to spawn inside a chest even though it's under singles.
Again it's just a consideration and maybe one day you could add it if it's too much of a hassle or not at all. Your plugin is godlike and everybody on my server loves it and I love you for it. Thanks!
-
View User Profile
-
Send Message
Posted Feb 20, 2012@Crayder
Not yet, still working on a major upgrade to the aged code in this plugin. Will be multiworld and have stuff listed in below comments when it's ready. Hopefully tonight. Last night I hit a few bumps.
-
View User Profile
-
Send Message
Posted Feb 20, 2012Is this currently compatible with 1.1-R4?
-
View User Profile
-
Send Message
Posted Feb 19, 2012@TheBoomer
Actually, I have two things to say about that :)
1. You can use item ids as well, such as on the Minecraft Data Values (google that) list. It will automatically convert them to the item names when you load the config. 2. In the new version you won't need to separate singles and multiples, as I wrote a short function that can handle that automatically.
-
View User Profile
-
Send Message
Posted Feb 19, 2012@Xevets
Ah, yeah. When I started making this plugin I was less experienced with block protection. I probably forgot a few other ways to destroy the chests too. I'll try to get that in today before the update, as I'm more familiar with it now.
-
View User Profile
-
Send Message
Posted Feb 19, 2012@Flabberty
@DeathMaster041
The plugin should be updated tonight hopefully.
I apologize but I also run a server and work full-time so sometimes I don't get to code as much as I'd like. I worked extra hours this week and am off today so after I sleep I will be working on the new version. Lots of changes, fixes, additions in this new version (and it's designed for the current bukkit). You should backup your current configs before the update sometime if you want to keep an idea of your old item setup. The new version changes the config around a bit. The new features are:
So please be patient. :) I'm sorry for the delay but I am a pretty busy guy, lol.
-
View User Profile
-
Send Message
Posted Feb 15, 2012Can you update please?
-
View User Profile
-
Send Message
Posted Feb 15, 2012Minor bug report: Had a chest destroyed by a creeper. The plugin did not register the chest as taken or gone. Putting a chest back in the same spot fixed the problem, but I thought you might want to look in to a way to protect it from creeper explosions. I know LWC chests can't be destroyed by creepers, so maybe there's something you can borrow from that plugin.
-
View User Profile
-
Send Message
Posted Feb 12, 2012Hey, when I set this up on my server, I get the error
[SEVERE] Error occurred while enabling TreasureHunt v0.7 (Is it up to date?): net/milkbowl/vault/economy/Economy java.lang.NoClassDefFoundError: net/milkbowl/vault/economy/Economy at me.taien.TreasureHunt.onEnable(TreasureHunt.java:147) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) Caused by: java.lang.ClassNotFoundException: net.milkbowl.vault.economy.Economy at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 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(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 11 more
I don't have an economy plugin, and when I try to set the values of money to put in chests to 0, it resets itself. Any fixes?
-
View User Profile
-
Send Message
Posted Feb 12, 2012Wow i can't believe i didn't see this earlier - and ETFal you'll appreciate this too
you just need to change the configuration file that lists the asociated values for the items, Remove an item off the list and it isn't used to fill the chest.Put items under the "singles" category that should spawn a maximium of only 1 item per chest, and ones under multiples that it can pad the chest with.
Im just finetuning the setup now and will be rushing this config into my real server momentarily :)
However, it would be nice to have a document enumerating all of the item names available , if you are converting words to items /blocks using a particular convention so that we can add other materials using the names it will parse.
-
View User Profile
-
Send Message
Posted Feb 9, 2012I may have missed it, but how do you restrict what I items (and quantity) can spawn in the chest? I dont want people to have fire / water, etc,.
-
View User Profile
-
Send Message
Posted Feb 9, 2012Sorry I haven't updated yet. I've been working on a major plugin on my server to handle factions/cities/estates/work all at once and be efficient and the way I want about it. As for TreasureHunt, I'm as we speak updating it for the newest RB, and I'm going to be doing other bugfixes on it soon. So don't fear. I have every intention of continuing with the plugin and making it better and better :)
I'm just glad you guys like it. I originally made it to give people on my server more to do, and I am glad it is having the same effect on others.
-
View User Profile
-
Send Message
Posted Feb 8, 2012Wow - I've just tried this out on my sandbox server to test, looking for something to give a bit of a lift to my site, and this will definitely do the job...as soon as the custom lists of items (or blacklists or whitelists ) configurable for chest content is working.
I like the ability to manually set the position - I have some giant protected regions around my spawn area and other arena-complexes, etc... to allow me to put the chest somewhere in particular first also helps to prevent the world from becoming a series of shafts.
Have seen lots of great plugins but this is the first to make me sign up in order to post :)
Bookmarked and on the refreshlist hoping for a whitelist/blacklist system or 'draw from set A for one chest, draw from set B for another chest" configurations soon.
-
View User Profile
-
Send Message
Posted Feb 8, 2012@WayGroovy
you can try the version i linked two posts down and see if it helps your problem
-
View User Profile
-
Send Message
Posted Feb 8, 2012I am having difficulty with the config. I open and edit, then use http://dev.bukkit.org/server-mods/pluginreloader/ to reload TreasureHunt. Every time I do the config is overwritten with the standard stock config.
-
View User Profile
-
Send Message
Posted Feb 7, 2012out of interested, what happens if/can it spawn inside a protected area ?
-
View User Profile
-
Send Message
Posted Feb 7, 2012i have managed to get multiworld to work.
If you want the update just let me know here
Also Taien if you need help on that let me know I can help you.
-
View User Profile
-
Send Message
Posted Feb 4, 2012ok i had a small mistake with not being able to claim the chests: here is the new update.
http://www.minecraftopia.tk/downloads/TreasureHunt_v2.jar
-
View User Profile
-
Send Message
Posted Feb 4, 2012Dear Users as well as Taien,
I have updated your plugin to work with the new craftbukkit releases and also fixed quite a few issues with your HashMaps and LinkedLists being generic Object types, as well as your config write. It now creates configs. If you want me to give you the fixed source code Taien just let me know. Also if it is not ok with you for posting the updated version here. I will take it off immediatly. I just wanted to help so other people can run it with java7 and newer craftbukkit releases. Its confirmed to be working with craftbukkit-1.1-R3
here is the link for everybody:
http://www.minecraftopia.tk/downloads/TreasureHunt.jar
And thanks Taien for the awesome plugin!