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.
Still waiting for a chest config :D So I can set up the chests myself ;D
Awesome!
This: "Secondary hunt command for servers where my command conflicts (/th) " Would be great :D
This is one of the favorite plugins on our server. Thank you very much for writing it.
@Taien1
Anyone know what happens when you install this on a Skylands map?
@Drehverschluss
Hmmm, are you sure you have permissions set up right? I just checked the code and it does check if you have the permission 'taien.th.admin' when doing that command. If you don't have permissions working with the plugin it won't let you do it if you're not opped.
Also, check out version 0.7 which I just uploaded. You'll need to use Vault for permissions and economy from now on, but it still should work without it (although you won't be able to set perms for commands, you'll have to use default op permissions).
@Subhazardman
I have now added Vault permission support and removed the old permission support which was causing problems. This should help you out (provided Vault supports GroupManager, which I sure hope they do). It should also fix all the permissions errors people were having.
Let me know if there are more issues.
Hey, please add support for GroupManager.
Our players had a lot of fun with treasurehunt, but due to a lack of compatibility, TreasureHunt crashed our server at least 3 times a day so we had to remove it.
TreasureHunt keeps people on our server, due to it's constant engagement, and pvp opportunity.
You've got something good going on here. If you add GroupManager compatibility, you can see a donation from us soon.
Hah, I should have read more carefully.
taien.th.hunt - allows users to use /hunt taien.th.notify - allows users to receive broadcasts from TreasureHunt taien.th.tool - allows users to use the hunt tool taien.th.claim - allows users to claim chests they find (without this, they cannot win the hunt, only find the chest) taien.th.admin - allows users to use all OP COMMANDS from above.
It's right there. Excellent work!
I would like to have the option to disable both the /hunt command and the announcement that a hunt has begun.
I'd simply like to have a few chests randomly scattered across my server with valuable supplies inside.
I'd be very appreciative if those changes could be made!
My config file gets recreated upon reboot? Am I doing something wrong?
Hey hey i regogniced that this plugin miss 1 permission for the "/hunt list" command...plz update that cause people cant check how long the Hunt is still aktive
Getting this error since upgrading Treasure Hunt from v0.5e to v0.6.
[SEVERE] Error occurred while enabling TreasureHunt v0.6 (Is it up to date?): net/milkbowl/vault/economy/Economy
I stopped server, deleted Treasure Hunt v0.5e Config file and jar and placed the v0.6 jar in the pluggin dir. Started sever. Tried it twice.
I don't use vault. v0.5e was working great!
Hope there is enough detail to help you troubleshoot this. My kids love finding the treasures on our home server.
Ok here some infos to my Error (cause i get no answer) I am using last Version of reasureHunt Last Version of Spout (DevBuild 666 atm) Last Version of Bukkit #1685
I guess for now until the next version I should just state that the only permissions it uses that definitely works is PermissionsEX. I use that on my server with no problems. The other permissions will have to wait until I can implement Vault's permissions stuff. It'll be a few days, going through a major gamestyle change on my server atm.
@hikingmonk
Supposed to work without Vault too...sigh. I'll look into it. I don't understand where all these errors are coming from :p I use it on my server and it runs fine. *sad*
@oceanor
Guess I'm going to have to update to Vault permissions handling because this has been a problem for people for a while now, and I don't know what the issue is. Anyway, you'll have to wait for 0.7 I guess...I'll try to get it done tonight.
@hikingmonk
Looking into it
@WickedSicked
The download may not always be on the right side right away, but the one in the description is always up to date. The ones on the right side have to be approved physically by a bukkit mod, and that isn't always quick.
Hey hey i got this error after leaven the 200Block radius and typing /hunt http://pastebin.com/mNWRDsHC
This may be by design, but it looks like this plugin doesn't work if you don't have Vault installed?
------------------19:34:53 [INFO] [TreasureHunt] Activating... 19:34:53 [SEVERE] Error occurred while enabling TreasureHunt v0.6 (Is it up to d ate?): net/milkbowl/vault/economy/Economy java.lang.NoClassDefFoundError: net/milkbowl/vault/economy/Economy at me.taien.TreasureHunt.onEnable(TreasureHunt.java:153) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:968) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:280) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169 ) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) Caused by: java.lang.ClassNotFoundException: net.milkbowl.vault.economy.Economy at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:36) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:24) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 11 more