Lootbox
12/17/15 - NOTE: A re-work in the process. A working version is currently privately available and is waiting on public release. Please note that, on the outside, it will be less dynamic than the current version and quite a bit buggier. Unfortunately, this does tend to happen with code re-writes. Please stay tuned as the project is turned over to BETA and updates will be released accordingly. More to come this following week...
12/29/15 The re-work is near completion! Expect a release on New Years' Eve
1/1/2016: Happy New Years! Enjoy the update.
Lootbox
About
Lootboxes, mystery crates, loot chests, loot boxes, loot crates, whatever you call them! Reward your players for finding them & their keys (configurable) for epic loot!
Lootbox is like opening a chest, but it's in your inventory! You can configure it so that you can have multiple lootboxes that may or may not require keys to open. When they are opened, they can execute commands from the console and/or give items to the player. This will probably be the best drop party gift you could give your players or one of the most desired quest items! The possibilities are endless!
Lootboxes are, by default, chests with a special name and lore. They can be opened either by themselves or by a key (tripwire hook) as determined by the config.yml. They can be used in the following and more: Quests, treasure chests, drop party items, trade, donations! But really, the possibilities are endless.
Youtube Tutorial
https://www.youtube.com/watch?v=uZrnOAiY6-I
Commands
- /lootbox help <admin> - Displays the in-game help page.
- /lootbox open - Have the lootbox in slot 1 and key in slot 2. Then use this command to open.
- /lootbox reload - Reloads the config.yml
- /lootbox give <username> <key/lootbox> <UUID of lootbox/key> - Gives a player a specified key/lootbox.
- /lootbox preview - Previews with a virtual inventory what is inside a lootbox.
- /lootbox info - See a list of keys/lootboxes that can be used on the key/lootbox in hand.
- /lootbox list <keys/lootboxes> <e> - Lists all keys/lootboxes on the server. Add an 'e' on the end to see an expanded list.
Nodes
- /lootbox help - lootbox.help
- /lootbox open - lootbox.open
- /lootbox help admin - lootbox.admin.help
- /lootbox reload - lootbox.admin.reload
- /lootbox give - lootbox.admin.give
- /lootbox preview - lootbox.preview
- /lootbox list <keys/lootboxes> <e> - lootbox.list
- /lootbox info - lootbox.info
Configuration
Example config.yml: http://pastebin.com/H0sZhuA3
EID List:
- Names are case-sensitive
The chat options should be self explanatory.
Suggested Plugins
- http://dev.bukkit.org/bukkit-plugins/otherdrops/ - Set a drop to the lootbox name and lore and now mobs can drop lootboxes! Remember, the lore and name are case-sensitive!
- http://dev.bukkit.org/bukkit-plugins/treasurechest/ - Put lootboxes in these stationary treasure chests for better rewards!
- http://dev.bukkit.org/bukkit-plugins/event/ - Host drop parties and events where you give away lootboxes!
- http://dev.bukkit.org/bukkit-plugins/quester/ - Give lootboxes to players for completing quests!
- http://dev.bukkit.org/bukkit-plugins/loot-crates/ - An alternative, similar plugin.
Final Notes
Make sure that players have enough room are online and have room in their inventory when using the /lootbox give command. If they aren't online it won't be given to them and if their inventory is full it will drop at their feet, prime time for others to steal it. Please notify me about suggestions or bugs through the comments/tickets! Any comments are welcomed. :)
@TheOatBaron
I got a problem why the list of my lootboxes doesn't exist but in the list of my keys exist. and when I '/lootbox give ArtHD lootbox PandoraBox' invalid lootbox and when I type '/lootbox give ArtHD keys PandoraKey' it gives me the key. and the other commands '/lootbox info key' in hand it says lootboxes and same thing in '/lootbox info lootbox'
By the way thanks TheOatBaron for new updates of Lootbox Plugin. I'm going use it now. ^_^
@DerZocker97HD
Did you try to delete the first LootBox Folder before the new update plugin ? if not get a copy of your lootboxes and keys then delete the old LootBox Folder then reload to have a new lootbox folder for lootbox plugin v2.11b.
can you post the link? it isnt listed
I dont have any Keys and Lootboxes , If i reload the config or the server it doesnt help either! :/
@AKlarvanto
Uploaded v2.12b which should fix this issue.
@AKlarvanto
Huh, weird. If you haven't, backup your config.yml to a different location. Then reload it. Do you have any keys in your config?
Thank you for adding /lootbox give console command. It works but there is now another problem. When I type /lootbox open I get internal server error. Look log file here:
Spoiler
I need to add that /lootbox help and /lootbox preview are working and /lootbox open did work before 2.11b update.
@AKlarvanto @SuperGakusei
Uploaded v2.11b, expect verification within the next few hours
@AKlarvanto
Wow! I didn't even think about that. Working on a patch right now to atleast add the give command.
Awesome plugin but when do you think console commands will be added? I would like to use this to give lootbox to voters as a reward and therefore console command "/lootbox give" is needed. This plugin is very cool but to me it is unfortunately useless until console commands can be run by votifier listener. Thank you and great work!
@SuperGakusei
Tagging you just so you know :P Notice any other glitches?
Just uploaded. Pending approval.
Pushing out the update two days early! This update is just a quick patch fixing enchantments and the ability to place lootboxes... More to come.
Yes, :) I cant wait for the new update. I'm waiting ^_^. Thanks
Looking at February 12th for an update.
Thanks for making new update of LootBox Plugin I will wait till the new update comes.
@SuperGakusei
Ah! Make sure the loot box is in slot 1 and key is in slot 2 of your inventory! I needed to clarify this, my bad. Enchantments are broken and will be patched in the next update! Sorry and best of luck, update to come soon
@TheOatBaron Thanks for reply. The '/lootbox give SuperGakusei lootbox PandoraBox' and '/lootbox give SuperGakusei key PandoraKey' is working but when I do the open command '/lootbox open' in no-key lootbox it said cant open and in with key lootbox the armor and sword is not enchanted its a normal diamond armor and sword but in my config.yml http://pastebin.com/Z6q8Z7AF its enchanted. and when I type '/lootbox list lootbox' and '/lootbox list keys' the list is not appear. And why the other server use right click the lootbox in hand. haha Sorry if I have many problems ^_^. And Thanks for making this plugin.
@SuperGakusei
The permissions are as follows:
- /lootbox help - lootbox.help
- /lootbox open - lootbox.open
- /lootbox help admin - lootbox.admin.help
- /lootbox reload - lootbox.admin.reload
- /lootbox give - lootbox.admin.give
- /lootbox preview - lootbox.preview
- /lootbox list <keys/lootboxes> <e> - lootbox.list
- /lootbox info - lootbox.info
@SuperGakusei
Hey Super, sorry about the late reply.
Unfortunately, /lootbox create has been removed in this beta version. Your YML is setup correctly and I will be able to troubleshoot the problem later this afternoon.
Also note that the give command has been changed to following (you can no longer use abbreviations):
/lootbox give <name> lootbox <uuid> /lootbox give <name> key <uuid>
In your example, try '/lootbox give SuperGakusei lootbox PandoraBox' and '/lootbox give SuperGakusei key PandoraKey'. Let me know if this works!