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 Mar 31, 2012New version 0.8.2 released!
Mostly a bugfix version. New features will be added in next version. There was a pretty major bug in the item selection that was causing excessively rare chests to spawn despite the draw weight. See changelog for details.
-
View User Profile
-
Send Message
Posted Mar 31, 2012@rbos
I will add this to the list of things I plan to add in future versions...customizable messages that is.
-
View User Profile
-
Send Message
Posted Mar 31, 2012Plugin's broken for me, error messages appear in backwards order since I'm using multicraft console. 31.03 08:36:49 [Server] INFO MCBans: Starting.. 31.03 08:36:49 [Server] INFO ... 27 more 31.03 08:36:49 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 31.03 08:36:49 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader.findClass(Unknown Source) 31.03 08:36:49 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) 31.03 08:36:49 [Server] INFO Caused by: java.lang.ClassNotFoundException: org.bukkit.event.block.BlockListener 31.03 08:36:49 [Server] INFO ... 8 more 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144) 31.03 08:36:49 [Server] INFO at java.lang.reflect.Constructor.newInstance(Unknown Source) 31.03 08:36:49 [Server] INFO at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 31.03 08:36:49 [Server] INFO at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 31.03 08:36:49 [Server] INFO at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 31.03 08:36:49 [Server] INFO at me.taien.TreasureHunt.<init>(TreasureHunt.java:37) 31.03 08:36:49 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 31.03 08:36:49 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader.findClass(Unknown Source) 31.03 08:36:49 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader.access$100(Unknown Source) 31.03 08:36:49 [Server] INFO at java.net.URLClassLoader.defineClass(Unknown Source) 31.03 08:36:49 [Server] INFO at java.security.SecureClassLoader.defineClass(Unknown Source) 31.03 08:36:49 [Server] INFO at java.lang.ClassLoader.defineClass(Unknown Source) 31.03 08:36:49 [Server] INFO at java.lang.ClassLoader.defineClass1(Native Method) 31.03 08:36:49 [Server] INFO Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/block/BlockListener 31.03 08:36:49 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 31.03 08:36:49 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) 31.03 08:36:49 [Server] INFO at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) 31.03 08:36:49 [Server] INFO at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) 31.03 08:36:49 [Server] INFO at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) 31.03 08:36:49 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) 31.03 08:36:49 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148) 31.03 08:36:49 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/block/BlockListener 31.03 08:36:49 [Server] SEVERE Could not load 'plugins\TreasureHunt.jar' in folder 'plugins'
-
View User Profile
-
Send Message
Posted Mar 30, 2012@rbos
agree with hem, my server need spanish translations so these texts are useless for my players
-
View User Profile
-
Send Message
Posted Mar 30, 2012It would also be helpful if I could somehow customize the messages for my locale, or give instructions to players.
"A chest has spawned in %world near %x, %y! Use a compass to find out how far away it is!"
-
View User Profile
-
Send Message
Posted Mar 29, 2012How about a flag for amount of time before you can open the chest after clicking?
For PVP. If you take damage while opening it, the warmup resets.
-
View User Profile
-
Send Message
Posted Mar 29, 2012For those of you having problems with people only getting "/hunt" come up when they try to do things. You have to make sure in the permission node that you replace "world" with the name of the world you want players to have the perms in.
Hope it helps :)
-
View User Profile
-
Send Message
Posted Mar 28, 2012@UsefulPawn It works for me as OP, but players cannot.
-
View User Profile
-
Send Message
Posted Mar 26, 2012Seems to overwrite the config. If i change the config-save-reload the config goes back to default.
Also I must suggest, a way to scale the worth or spawn rate based on how many players are online. I can't tune it to a way i am satisfied with because late at night like now it will be 3-4 people getting all the fat loot and if i reduce it, no one will even bother when there are 20 people online.
Also I don't think drawweight works. If i set it to 50 and take 10 chests, like 6 legendary, 2 common, 1 uncommon, 1 epic very consistenly.
-
View User Profile
-
Send Message
Posted Mar 26, 2012Hi, I'm having a bit of trouble setting the default world for treasure hunts. When I type /hunt setworld I get the response "/hunt". It's not a permissions issue, because I have full permissions and op - being the server owner.
-
View User Profile
-
Send Message
Posted Mar 24, 2012yeah, 'im running VAULT. thx
i try to update PEX, or change the version
-
View User Profile
-
Send Message
Posted Mar 24, 2012Edit: I have left out permissions for teh message broadcast, so hopefully ignore that issue lol.
-
View User Profile
-
Send Message
Posted Mar 24, 2012I'm running the very latest build of bukkit (just updated to 1119 or whatever ti is lol)...
Using 0.81 of the plugin... 0.80 didnt work at all. just got error messages...
Running the following plugins:
MonsterHunt, Orebfuscator, Ptweaks, Transporter, LoyaltyPoints, DreamLand, ShireSheep, iZone, CommandBook, PermissionsEx, TerrainControl, TreeAssist, Nick, MineBackup, TreasureHunt, SlabUtilities, Spectate, SkylandsPlus, BurningMobs, Wisk, BKCommonLib, SimpleChestLock, DailyBonus, Modifyworld, PigZapAlert, FoundDiamonds, Catacombs, MobHealth, Giant Trees, ChatManager, Stream Remover
So no economy at all (I hate economy plugins personally) and running PermissionsEx (which is the latest versions and I've not had any trouble with at all)...
I get the following error in console (though I think it's just because I have no economy?):
2012-03-25 13:31:15 [SEVERE] Error occurred while enabling TreasureHunt v0.8.1 (Is it up to date?) java.lang.NoClassDefFoundError: net/milkbowl/vault/economy/Economy at me.taien.TreasureHunt.onEnable(TreasureHunt.java:86) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.ClassNotFoundException: net.milkbowl.vault.economy.Economy at java.net.URLClassLoader$1.run(Unknown Source) 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:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 11 more
And yeah... runs when I make it run but not randomly (it is meant to randomly happen correct?)... Don't get any notification message (again, this is meant ot happen yeah?) that it is happening... and the rotten flesh doesnt work =(
-
View User Profile
-
Send Message
Posted Mar 24, 2012@cyda001
Are you actually typing "/starthunt (value)"? Cuz it's like /starthunt 4000. Unless I'm just misunderstanding you there. I'll try to make some improvements to error messages in a minor update soon.
-
View User Profile
-
Send Message
Posted Mar 24, 2012@Sevennemesis
So the players also have those permissions right?
For players to use the tools and command, they need to have those that you listed. There have been a few buggy versions of PEX lately...try updating that.. also you are using Vault, right?
-
View User Profile
-
Send Message
Posted Mar 24, 2012@apoisonedgift
Now that's very odd, because I have it running on my server just fine and in 1.2.4....
Are you using the newest version of the plugin? What kind of permissions/economy? Vault installed? Any errors in console? :)
-
View User Profile
-
Send Message
Posted Mar 24, 2012So the plugin doesnt seem to work more or less at all for me. Now running 1.2.4, but was on 1.2.3... The hunts will only start if I manually do them, and the rotten flesh will not work at all, have to type in command to get the distance. I love the idea of this mod, but it isn't doing the hunts randomly and so on, or if it is it isn't notifying anyone. =/
-
View User Profile
-
Send Message
Posted Mar 23, 2012Hello, your plugin works great but there a problem. there for me who can use the command (Hunt) and the use of rotten flesh.not the player
all my plugins are current. I use PEX. permissions: - taien.th.hunt.world - taien.th.notify - taien.th.tool.world - taien.th.claim.world
thank you
-
View User Profile
-
Send Message
Posted Mar 22, 2012When i type in: /starthunt (value) it says an internal error occured? can anyone help pls?
-
View User Profile
-
Send Message
Posted Mar 21, 2012Works perfect with the Vault plugin. Thanks! :D