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.
WTF ever since I installed this plugin on my server and did /stop my server wont restart WTF helppp skype = JaseDBZ
@seifpic
Could this plugin get an update for Spigot 1.8?
well it make error when i break the gift in version 1.7.2
Wow, 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.
Needs 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.
Hello, 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?
Add the ability to add enchantments and damage values.
@B3nyx
Thanks
This works on 1.6.2 r2.0 bukkit
the default skin has been changed
@tango9999
Hey! this still works! :) Also u can use "Blegin116" as skin
Hey!, I was thinking about adding this to my server on Christmas, Would you be nice enough to update this plugin? Thanks!
i also need the giftskin, thanks! Great idea!:)
Do you have the gift Skin
Hi I need your help, is the items with :
supported already?
@seifpic
Okay, there's another error.
When i broke any type of heads except giftboxes there is some error showing up in the console
@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.
@seifpic
Thanks!
@zengxii
Done and updated. Download version 2.5 from the link above. Unfortunately I wasn't able to incorporate the damage values this version.