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.
@Adfest
TreasureHunt apparently doesn't support multiple worlds yet (even though it has the option inside the plugin). The next version will support it. I was having the same problem, there's a ticket for this issue.
I seem to be having some issues getting the plugin to stick to a specified multiverse world. I've created a separate hunting world apart from my default world so that I could remove perms like magic carpet. I change the name of the world in the config under options/worlds from the default world to my special hunting world, save, and reload the plugin in game. It works for a while, but when I come back a few hours later (perhaps after an automated reboot?), it has switched back to starting hunts in the default world. This is blowing my mind a little. Am I doing something wrong, or is this plugin just not ready for multiple worlds yet?
Oh, and I suppose while I'm here pleading for tech support on a free plugin, I must give praise and adoration where it's due. This plugin has been a lot of fun for our players! Something as simple as a race to the X, digging, and hoping you don't find lava, creepers, or other greedy weasels between you and the prize. Good times have been had by all. Thanks!
This plugin was a bit troublesome in the past - but now works really well on our server. I really had to tune down the original settings for balance, but the framework is excellent. It is one of the favorite plugins of the players, and we've had so many insane races to the treasure. Thanks for your hard work ;)
Just a note - not really of vital importance - this crashes Java when the world type is FLAT (or in other words, when there are no blocks to spawn the chest on). Evidently, it keeps looking until it crashes due to out of memory errors.
Works fine on the standard worlds though, thank you :) James.
I just installed this plugin for the mods and I to test. We like it, but we can't seem to remove the chests and the blocks below them. They sometimes spawn where someone has been working lol.
See above for an update on next version.
@RemyPas
In the next release you'll be able to /th for the same effect.
@Drehverschluss
I don't think that error is from my plugin (my plugin does not use Spout, and it doesn't save anything except on shutdown/reload). Can you post the console error for this?
@VenetianScorn
I'll look into this....seems like a problem with permissions though. The routine the error is pointing to is the one that clears active hunts on a reload/shutdown. It seems like either the player being sent the message or the permission for "taien.th.notify" is screwed up somehow...will see if I can find anything on my end. Can you PM me your config and your permissions file?
@sliderjon
Hmmm, that's odd. That shouldn't happen if you have your permissions and world set correctly. Can you show me your config? Maybe in a PM?
Hey dude your Plugin bring me an Error. I think there is a spout problem...i search the error later just to let you know: It through out a TooManyOpenFiles error after several Hours....somtime more someltimes less hours..
Looks like a great plugin! However, the /hunt command is already being used by the monsterhunt plugin, which I believe many servers are already using. (including mine sadly)
Any way to fix this?
Getting same errors as VenetianScorn (earlier post) and same error as v0.6. Latest version I can get to work is v0.5e
@sliderjon
I can confirm the same behavior in the latest version. the auto hunts do not work, but manually starting one does. The logs both show one is created, but if it is created then it is NOT in the world specified in the config.
Yea that works for op but i wanna give this command just come players to see if a hunt exist or not without using a rotten flesh
@JsmPick
Try using the commands to set the config file. I tried directly editing the config.yml and it never saved. Once you have configured the plugin, type "/hunt save" then "/hunt reload" (without quotes). That should save your configuration.
Nice mod. OP initiated hunts work great, however the automatic hunts are broken. Once an automatic hunt begins, and you use either the rotten flesh or /hunt, it says "No hunts are currently active". In multiverse it is a nuisance to have to go to the world in which I have the TreasureHunt pointed to initiate an OP hunt so that the players can hunt for the hidden treasure.
HI great plugin you did there!! the players just love it!!
everytime i turn the server off i get this error:
2012-01-21 14:07:50 [SEVERE] Error occurred while disabling TreasureHunt v0.7 (Is it up to date?): null java.lang.NullPointerException at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.playerHas(Permission_PermissionsEx.java:90) at net.milkbowl.vault.permission.plugins.Permission_PermissionsEx.has(Permission_PermissionsEx.java:85) at me.taien.TreasureHunt.broadcast(TreasureHunt.java:508) at me.taien.THHunt.removeChest(THHunt.java:321) at me.taien.TreasureHunt.onDisable(TreasureHunt.java:84) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:190) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:989) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:296) at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:289) at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:181) at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:376) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:455) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
i have the latest version installed. For the moment it doesnt really bother me more than looking bad on the console ;) no effects in game, as the plugin runs absolutely smoothly besides of that error
...but you never knoe what might happen..
@JsmPick
That shouldn't happen...try the newest version
@SirMonsterSlayer
Most of the chest content values can be set in the config. I haven't currently added a thing to make certain items only appear in a certain level of chest yet though. Working on it.
Also working on making it have separate settings for multiple worlds. And /th is actually in there, just not linked. lol. Will release a maintenance update soon to fix that. Gotta work today but if I don't get called in right away I'll get it done. Thanks for compliments and glad you guys are enjoying it :)
@aufdemrand
Provided you set up the light settings properly it will probably still work. I can imagine it would lag a lot because of there being few blocks in the world it could spawn chests on. What I would do in this case is attempt to add block 0 to the list of SpawnBlocks in the config...see if it works and let me know. If ti works the chests will be able to spawn in midair, on a floating glowstone block :D