圣诞节将至,我们需要一种简洁的方式来向其他玩家赠送礼物。我信奉基于 Bukkit 进行模组开发的理念,因此创作了这个小巧的插件,为你们的 Bukkit 服务器添加了可制作的礼盒(Giftbox)。你可以将礼盒放置在任何地方,当玩家破坏礼盒时,它会掉落一份随机礼物。
下载
请使用右上角的下载链接。
功能
- 可制作的礼盒!
- 来自可配置列表的随机礼物!
- 自定义合成配方!
- 可配置的礼物掉落率!
如何制作礼盒
默认的合成配方如下:
不过你也可以定义自定义的合成配方。详见下一节。
配置
要配置此插件的属性,请运行一次服务器(已安装该插件),然后使用 /stop 关闭服务器。你的 plugins 目录中会创建一个名为“GiftBox”的新文件夹。在该文件夹中,会有一个名为“config.yml”的文件。使用记事本或任何文本编辑器打开该文件。文件内容如下所示:
GiftDrops:
- 264
- 57
- 278
DropRate: 0
GiftBoxPlayerSkin: lol768
CraftingRecipe:
LineOne: 339,339,339
LineTwo: 339,264,339
LineThree: 339,339,339
在 GiftDrops 下,你可以指定破坏礼盒时将随机掉落的礼物。它们通过 物品 ID 指定。你可以使用以下格式添加更多物品:- <itemID>。
你可以自定义礼物的掉落率。0 表示破坏礼盒后必定掉落礼物,1 表示有 1/2 的概率掉落礼物,2 表示有 1/3 的概率,依此类推。
礼盒方块实际上是一个 玩家头颅,其拥有者经过修改,皮肤头部显示为礼盒。特别感谢 lol768,他慷慨地专门为这个插件更改了他的皮肤。如果你想更改礼盒的皮肤,可以将 GiftBoxPlayerSkin 的值更改为另一个玩家的名称。
你可以将合成配方更改为你想要的任何自定义配方。LineOne 是合成表的第一行。这些数字是物品/方块 ID。因此 LineOne: 339,339,339 等同于在合成表的该行三个格子中放置 3 张纸。LineTwo 和 LineThree 同理。
命令
- /giftplayer [player]
- /giftall
权限
- 节点: Giftbox.Craft
- 允许玩家制作礼盒。默认情况下,这仅限‘OP’成员使用。
- 节点: Giftbox.giftPlayer
- 节点: Giftbox.giftAll
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧