本插件允许创建实际上是箱子的套件。当你使用 /ckit KIT 命令时,你会获得一个包含套件物品的箱子。当箱子被放置在世界中时,它将包含属于该套件的所有物品。
此插件是根据 bukkit 论坛上的一个插件请求创建的,链接如下:
功能
创建自定义套件以提供给新玩家或任何你想给予的人!
支持各种高级物品属性,如附魔、显示名称、描述等。
你可以将套件保存到游戏内的配置文件中。
除非你真的很想这样做,否则无需手动修改配置文件。
命令
- /ckit - 显示使用该命令的正确方式。详见下方。
- /ckit KITNAME - 给予你名为 KITNAME 的套件
- /ckit create KITNAME - 创建一个名为 KITNAME 的新套件。套件中的物品将是你当前背包中的所有物品。
- /ckit cooldown KITNAME COOLDOWN - 为名为 KITNAME 的现有套件设置冷却时间为 COOLDOWN 毫秒(1000 = 1秒)。
- /ckit delete KITNAME - 删除名为 KITNAME 的套件
- /ckit give PLAYERNAME KITNAME - 将名为 KITNAME 的套件给予 PLAYERNAME。
- /ckit save config - 将当前定义的套件保存到配置文件中。
上述所有命令都可以通过在控制台中指定目标玩家来运行,格式如下:
- /ckit TARGETPLAYER (其余命令部分)
示例:
- /ckit finalfred KITNAME - 将名为 KITNAME 的套件给予 finalfred。
- /ckit finalfred create KITNAME - 创建一个名为 KITNAME 的新套件,其中包含 finalfred 背包中的所有物品。
- /ckit finalfred delete KITNAME - 删除名为 KITNAME 的套件。
- 等等。
权限
- ckit.create - 允许你使用 /ckit create 命令(见上文)。默认为 OP。
- ckit.cooldown - 允许你使用 /ckit cooldown 命令(见上文)。默认为 OP。
- ckit.delete - 允许你使用 /ckit delete 命令(见上文)。默认为 OP。
- ckit.save - 允许你使用 /ckit save 命令(见上文)。默认为 OP。
- ckit.give - 允许你使用 /ckit give 命令(见上文)。默认为 OP。
- ckit.get.* - 允许你通过使用 /ckit KITNAME 获取任何套件。默认为 OP。
- ckit.get.KITNAME - 允许你使用 /ckit KITNAME。如果你希望用户能够生成自己的套件,你需要为他们赋予此权限。
配置
- kits - 每个套件名称的列表
- kitcooldown - 套件名称与其冷却时间的伪映射,格式为长整数。套件 "meow" 的冷却时间将保存为 "kitcooldown.meow"
- kititems - 套件名称与套件中包含的物品的伪映射。套件 "meow" 的物品列表将为 "kititems.meow"。该列表本身是 org.bukkit.inventory.ItemStack 的序列化列表。
我强烈建议不要更改配置文件。除非你真的知道自己在做什么,否则这比它值得的要麻烦得多。游戏内的命令应该就足够了。
你可能喜欢的一个功能是,创建一个套件、保存它,然后删除它,会在配置文件中留下它的物品定义。你可以通过手动将套件名称添加回 "kits" 配置项来重新创建该套件,并且它会保留它曾经拥有的所有物品。如果不小心删除了套件,这可能很有用。
祝你玩得开心!
This plugin allows the creation of kits that are actually chests. When you use the /ckit KIT command, you are given 1 chest that contains the kit items. When placed into the world, the chest will contain all of the items that belong to that kit.
This plugin was created in response to a plugin request on the bukkit forums available at:
Features
Create custom kits to give to new players or whoever you want!
Supports all sorts of fancy item properties, such as enchantments, display names, lore, etc.
You can save your kits to the configuration file in-game.
No need to mess with the configuration file unless you really want to.
Commands
- /ckit - Displays the proper want to use this command. See below.
- /ckit KITNAME - Gives you the kit named KITNAME
- /ckit create KITNAME - Creates a new kit named KITNAME. The items in the kit will be all of the items currently in your inventory.
- /ckit cooldown KITNAME COOLDOWN - Gives the existing kit named KITNAME a cooldown of COOLDOWN milliseconds (1000 = 1 second).
- /ckit delete KITNAME - Deletes the kit named KITNAME
- /ckit give PLAYERNAME KITNAME - Give PLAYERNAME the kit named KITNAME.
- /ckit save config - Save the currently defined kits to the configuration file.
All of the commands above can be run from the console by specifying a target player as follows:
- /ckit TARGETPLAYER (rest of command)
Examples:
- /ckit finalfred KITNAME - Gives finalfred the kit named KITNAME.
- /ckit finalfred create KITNAME - Creates a new kit named KITNAME that contains whatever finalfred's inventory contains.
- /ckit finalfred delete KITNAME - Deletes the kit named KITNAME.
- etc.
Permissions
- ckit.create - Allows you to use the /ckit create command (see above). Defaults to OP.
- ckit.cooldown - Allows you to use the /ckit cooldown command (see above). Defaults to OP.
- ckit.delete - Allows you to use the /ckit delete command (see above). Defaults to OP.
- ckit.save - Allows you to use the /ckit save command (see above). Defaults to OP.
- ckit.give - Allows you to use the /ckit give command (see above). Defaults to OP.
- ckit.get.* - Allows you to get any kit by using /ckit KITNAME. Defaults to OP.
- ckit.get.KITNAME - Allows you to use /ckit KITNAME. You will have to give your users this permission if you want them to spawn their own kits.
Configuration
- kits - A list of the names of each kit
- kitcooldown - A pseudo-mapping of kit names to their cooldowns in the format of a long integer. The kit "meow" will have its cooldown saved as "kitcooldown.meow"
- kititems - A pseudo-mapping of kit names to the items contained in a kit. The kit "meow" will have its item list as "kititems.meow". The list itself is a serialized list of org.bukkit.inventory.ItemStack.
I highly recommend not changing the configuration file. It's more trouble than it's worth unless you really know what you're doing. The in-game commands should suffice.
One feature you may like is that creating a kit, saving it, then deleting it will leave it's items definition in the configuration file. You can re-create the kit by manually adding the kit name back to the "kits" configuration item and it will retain all of the items it used to have. This may be useful if you accidentally delete a kit.
Enjoy!
评论 0
登录后参与评分
还没有评论,来抢沙发吧