GiftBox

With Christmas coming up, we needed a clean way to give out gifts to other players. I believe in modding though Bukkit therefore I created this neat little plugin which adds craftable Giftboxes to your Bukkit server. You can place these giftboxes anywhere you want and once a player breaks the giftbox, it drops a random gift.
DOWNLOAD
Use the download link at the top right.
FEATURES
- Craftable GiftBoxes!
- Random gifts from a configurable list!
- Custom crafting recipes!
- Configurable gift drop rate!
HOW TO CRAFT A GIFTBOX
The default crafting recipe is:

However you can define a custom crafting recipe. More about that in the next section.
CONFIGURATION
To configure this plugin's properties, run the server once (with the plugin installed) then shut it down using /stop. A new folder named "GiftBox" will be created in your plugins directory. In that folder, there will be a file named "config.yml". Open that file using Notepad or any text editor. The contents of the file will look like this:
GiftDrops: - 264 - 57 - 278 DropRate: 0 GiftBoxPlayerSkin: lol768 CraftingRecipe: LineOne: 339,339,339 LineTwo: 339,264,339 LineThree: 339,339,339
Under GiftDrops you can specify the gifts that will randomly drop when a gift box is broken. They are specified using item IDs. You can add more items using this format: - <itemID>.
You can customize the drop rate of the gifts. 0 being that a gift will always be dropped once a giftbox is broken, 1 being that there is a 1/2 chance of a gift being dropped, 2 being 1/3, etc.
The GiftBox block is actually a playerhead with a modified owner that has a giftbox as a head in their skin. Special thanks to lol768 who was generous enough to change his skin specially for this plugin. If you want to change the giftbox's skin, you can change the GiftBoxPlayerSkin value to another player's name.
You can change the crafting recipe to be any custom recipe you want. LineOne is the first row in the crafting table. The numbers are item/block IDs. So LineOne: 339,339,339 is equivalent to placing 3 paper in the three cells in the row in a crafting table. The same goes with LineTwo and LineThree.
COMMANDS
- /giftplayer [player]
- Gives specified player a giftbox.
- /giftall
- Gives all online players giftboxes.
PERMISSIONS
- Node: Giftbox.Craft
- Allows a player to craft a Giftbox. By default this is restricted to 'opped' members only.
- Node: Giftbox.giftPlayer
- Allows a player to give other players giftboxes.
- Node: Giftbox.giftAll
- Allows a player to give all online players giftboxes.
-
View User Profile
-
Send Message
Posted Jan 4, 2015WTF ever since I installed this plugin on my server and did /stop my server wont restart WTF helppp skype = JaseDBZ
-
View User Profile
-
Send Message
Posted Dec 25, 2014@seifpic
Could this plugin get an update for Spigot 1.8?
-
View User Profile
-
Send Message
Posted Nov 8, 2014well it make error when i break the gift in version 1.7.2
-
View User Profile
-
Send Message
Posted Aug 31, 2014Wow, I never thought this plugin would get this response :P
Unfortunately I haven't coded a plugin since last year and I basically forgot Java.. However, I will get to updating it soon.
-
View User Profile
-
Send Message
Posted Aug 5, 2014Needs patched. I patched my own version of it today. Turns out, skull blocks don't always have owners and it throws an NPE when it doesn't.
if(!brokenblockskull.hasOwner()) return;
If you add that line right before the line that gets the item and casts it to SkullMeta, it'll fix it.
-
View User Profile
-
Send Message
Posted Jun 14, 2014-
View User Profile
-
Send Message
Posted Feb 8, 2014Hello, I love this plugin. But I have a problem. Items such as wood that is not compatible with the format "35:3". Can you please update the plugin?
-
View User Profile
-
Send Message
Posted Dec 13, 2013Add the ability to add enchantments and damage values.
-
View User Profile
-
Send Message
Posted Dec 13, 2013@B3nyx
Thanks
-
View User Profile
-
Send Message
Posted Dec 13, 2013This works on 1.6.2 r2.0 bukkit
-
View User Profile
-
Send Message
Posted Dec 12, 2013the default skin has been changed
-
View User Profile
-
Send Message
Posted Nov 27, 2013@tango9999
Hey! this still works! :) Also u can use "Blegin116" as skin
-
View User Profile
-
Send Message
Posted Oct 5, 2013Hey!, I was thinking about adding this to my server on Christmas, Would you be nice enough to update this plugin? Thanks!
-
View User Profile
-
Send Message
Posted Oct 1, 2013i also need the giftskin, thanks! Great idea!:)
-
View User Profile
-
Send Message
Posted Jul 26, 2013Do you have the gift Skin
-
View User Profile
-
Send Message
Posted May 18, 2013Hi I need your help, is the items with :
supported already?-
View User Profile
-
Send Message
Posted Apr 10, 2013@seifpic
Okay, there's another error.
When i broke any type of heads except giftboxes there is some error showing up in the console
-
View User Profile
-
Send Message
Posted Apr 9, 2013@seifpic
Okay nevermind, maybe it will take some time for you to figure it out.
New Ideas : /giftall [amount] /giftplayer [name] [amount]
When i type in /giftall, every player received their gifts but the it doesn't give response. Ex : /giftall and nothing happens but they still receive their gifts.
-
View User Profile
-
Send Message
Posted Apr 9, 2013@seifpic
Thanks!
-
View User Profile
-
Send Message
Posted Apr 5, 2013@zengxii
Done and updated. Download version 2.5 from the link above. Unfortunately I wasn't able to incorporate the damage values this version.