GreenCrate

Overview
GreenCrate is a simple plugin that adds prize crate items to your server. 'Crates' are items that open when right clicked, awarding the player specified items as defined in the config.yml file for that crate. Crates can be configured with custom item IDs, data values, and custom display names, among many other options. They can also open customized chest GUI screens for the user to take items out of, as well as drop from mobs as a reward. Items in the crates can be configured with data values, amounts, enchantments, display names, and lore.
Commands and Permissions
This plugin uses the /crate command to distribute and manipulate crates manually. All command functionalitites from previous versions have been combined into this single command.
- /crate reload - Reloads the main config.yml file. (Permission: greencrate.crate.reload) ♦
- /crate list - Lists all crates available to you. (Permission: greencrate.crate.list)
- /crate spawn <name> - Spawn the item for the specified crate into your inventory. (Permission: greencrate.crate.spawn)
- /crate give <player> <name> - Gives the crate item for the specified crate to the given player. (Permission: greencrate.crate.give) ♦
- /crate random - Spawns the crate item for a random crate into your inventory. (Permission: greencrate.crate.random)
- /crate giverandom <player> - Gives the item for a random crate to the specified player. (Permission: greencrate.crate.giverandom) ♦
- /crate open <name> - Opens the specified crate for you without the crate item. (Permission: greencrate.crate.open)
- /crate openfor <name> <player> - Opens the specified crate for the given player without the crate item. (Permission: greencrate.crate.openfor) ♦
- /crate openrandom - Opens (gives you the items for, or opens the chest GUI for) a random crate in the config. (Permission: greencrate.crate.openrandom)
- /crate openrandomfor <name> - Opens a random crate for the specified player. (Permission: greencrate.crate.openrandomfor) ♦
♦ Can be run from the server console.
If you have individual crate permissions enabled, you must give players greencrate.use.<cratename> for them to be allowed to open the crate.
Configuration
Visit the configuration page for details on how to use GreenCrate's config.yml file.
WARNING: Since this project is still in an early development stage, the format of the config.yml may change in between versions and may not always be cross-compatible. Be sure to update your config to the latest formatting when updating to a newer version.
Bug Fixes
This plugin is very early in development. If you find a bug, please submit a ticket. I need to know what version of CraftBukkit you are using and the contents of your config.yml file. If it is an Exception in the console, I also need the exact text of the Exception from the console. If it is a problem with the plugin itself, I will do my best to fix it.
Source
The source code for this plugin is available on GitHub. I apologize if the code is outdated; I'm not really good with GitHub, and I might have trouble merging all of the up-to-date changes.
GitHub Repository: GreenCrate
Feature Requests
If you have feature requests, please PM me, submit a ticket, or leave a comment. I can use all the good ideas I can get to make this plugin better. Some possible future additions are listed below. (This is not an exhaustive list.)
Planned Additions:
- '[GreenCrate] ...' notification disable option in config
- Subgrouping and randomization for crate contents
- Item-specific options, such as cooldowns, limits, etc
- In-game crate creation
-
View User Profile
-
Send Message
Posted Dec 10, 2013Seeing as this is open source, I jumped right in and fixed all the errors, except one, which I was wondering if you could help me with, Greenlock28...
EDIT: BUG FIXED! IF YOU WANT ME TO HELP YOU GREENLOCK, PLS PM ME :D
I've tried editing the core of this, however it still throws, so I'd love if you could contact me over BukkitDev and help me interpret some code :D
Thanks for the awesome plugin, and out of respect I won't release the fixed version publicly, but I can send it to you if you need help fixing errors?
Benji
-
View User Profile
-
Send Message
Posted Dec 10, 2013@Luke_James
Also having this issue.
-
View User Profile
-
Send Message
Posted Dec 3, 2013Hi,
I'm having some issues.
When I give myself a crate via /crate giverandom and open it, I am able to infinitely take items from the crate; they do not disappear from the crate as I remove them. I am also able to keep opening the crate by using /crate openrandom. Why is this?
-
View User Profile
-
Send Message
Posted Dec 2, 2013Could you please fix the download link :)
-
View User Profile
-
Send Message
Posted Nov 19, 2013@Weeeezey
What kind of voting? Voting such as server list voting? I don't know if it is possible; there might be plugins to give you prizes for voting on server lists, but I don't know of any specific ones.
-
View User Profile
-
Send Message
Posted Nov 7, 2013@sodafizzle
The plugin uses the values of the Bukkit 'Enchantment' enumeration. A list of enchantment names can be found here. Also, enchantments are defined in the plugin as follows:
'<name>-<level>'For example:
'THORNS-3'-
View User Profile
-
Send Message
Posted Nov 7, 2013@Luke_James
I read up on Buycraft and it looks like you should be able to make it run the commands. In version 0.0.7 of GreenCrate, I've added a 'bind-to-player' option for crates. When enabled, this makes crates that are given to a player with a command exclusive to that player. This should do what you need for your store.
-
View User Profile
-
Send Message
Posted Nov 6, 2013Hi i am having trouble customizing the enchantments on the crate items can you post a guide on the aliases you used?
-
View User Profile
-
Send Message
Posted Nov 6, 2013I am referring to Buycraft.
Would it work if I were to force Buycraft to run the command /crate giverandom <player> X number of times? So say somebody bought five crates, then the command would be processed for that player five times - would that enable the person who bought the crates to use the /crate open five times and get the items?
-
View User Profile
-
Send Message
Posted Nov 5, 2013@Luke_James
Unfortunately, in the current version of the plugin, there is no way to configure a system such as the one you are describing. It sounds like you need the crates to bind to the player once they buy them and they enter the player's inventory. I can work on this feature next.
Just out of curiosity, what store are you using? Is it a shop plugin like ChestShop, or is it a real-currency-for-ingame-items website type store? If it is a chest or sign shop plugin, it may or may not be able to sell the crates. If it can't, I can look for a way to possibly fix that as well.
-
View User Profile
-
Send Message
Posted Nov 3, 2013Hi,
How could I configure this so a person can buy X amount of crates from my store and then get them in-game?
For example, if a person was to buy five crates from my store how could I configure it so that they are able to be opened by that player, and that player only?
-
View User Profile
-
Send Message
Posted Oct 21, 2013@PhiberOptikx
No, I didn't get the idea from MooseValley, it was actually a concept for getting more donations on my server by selling crates of items not obtainable normally.
But the name MooseValley does sound vaguely familiar, although I don't recall ever having played on there...
-
View User Profile
-
Send Message
Posted Oct 17, 2013Did you get this idea from MooseValley?
-
View User Profile
-
Send Message
Posted Oct 10, 2013Hello i am using 1.6.4 dev build bukkit.
I would really like to use this on my server as i have yet to find a good prize plugin. Please if you would add into the game,
(1) Option of Auto regenerating items functionality so that i would not have to refill the chest. (2) Option of prize cooldown. (3) Option of 1 prize per player all time.
Thank you i would love to use this on my server if those are added.
-
View User Profile
-
Send Message
Posted Oct 4, 2013@Nosfeato
A 1.5.2 version of the plugin is most likely do-able.
What do you mean by items autoregenerating? Do you mean that they re-appear in the crate as you take them out, or do you mean a cooldown period for reusable crates? Please explain your request further...
-
View User Profile
-
Send Message
Posted Oct 4, 2013Could you make a 1.5.2 version of this plugin ??
Could you also make items in crates autoregenarate?
-
View User Profile
-
Send Message
Posted Oct 1, 2013Unfortunately, the 0.0.4 version release may be delayed due to issues with Bukkit file approval. I apologize for the inconvenience.
-
View User Profile
-
Send Message
Posted Sep 29, 2013@TehMinecraftPoke
The /crate give, giverandom, openrandomfor, and reload have been enabled for use on the console in version 0.0.4.
-
View User Profile
-
Send Message
Posted Sep 28, 2013The command /crate giverandom can't be done from the console...
Can you make it so it's possible? This would be a good addition for a voting system.
-
View User Profile
-
Send Message
Posted Sep 9, 2013@Skittles4Gaming
Please submit a ticket with your config.yml contents so that I can trace the problem.
Thanks!