CKits
简易套件插件。
使用 /ckits 命令,您可以查看并选择想要领取的套件。
GUI 支持分页,因此您可以拥有任意数量的套件。
套件具备有限次数、库存、冷却时间等选项。
本插件还支持 Vault,安装后您可以为套件设置价格。
命令:
- /ckits -> 打开 GUI,您可以在其中查看并领取/购买套件。
- /ckits add <name> -> 添加新套件。若要使用自定义颜色名称,请使用颜色代码,例如 "&6Name"。
- /ckits remove <kit> -> 删除套件。
- /ckits reload -> 重新加载配置文件。
- /ckits save -> 保存配置文件。
- /ckits stockreset -> 将库存重置为默认值。
- /ckits set <kit> <parameter> <value> -> 参数:
- - 'needsPermission' - 设置玩家是否需要权限才能获取套件。
- - 'cost' - 替代了 'withcost' 子命令。
- - 'stock' - 设置可用套件的数量。若无限制库存请使用 -1。
- - 'isLimited' - 将套件设置为仅限一次领取,并将 'cooldown' 参数设为 0。
- - 'cooldown' - 以秒为单位设置新的冷却时间,并将 'isLimited' 参数设为 false。24小时的默认值为 86400。
- /ckits help -> 显示此列表。
1.02 及以下版本
- /ckits add <name> <needsPermission> <stock> <isLimited> <cooldown> -> 添加新套件。可使用颜色代码符号 '&' 来创建自定义颜色的名称。库存表示可用套件的數量,-1 表示无限制。冷却时间为秒数。24小时请使用 86400。'isLimited' 值用于一次性领取的套件。
- /ckits insert <kit> -> 将手中的物品插入套件。
- /ckits takeout <kit> <slot> -> 从套件中移除物品。使用 'slots' 子命令可查看哪些物品在哪个槽位。
- /ckits list -> 显示可用的套件。
- /ckits slots <kit> -> 获取套件的物品槽位。
- /ckits getperm <kits> -> 获取套件的权限。
- /ckits stockreset <kit> -> 重置特定套件的库存数量为默认值。
- /ckits withcost <kit> <cost> -> 为套件添加价格。需要安装 Vault 才能使用此功能。
- /ckits stockreset <kit> -> 重置特定套件的库存。
权限
- ckits.admin - 允许使用所有 ckits 子命令。
- ckits.[kit name].claim - 允许领取特定套件。
配置:
#自定义 GUI 名称
guiName: '&0CKits'
#设置 GUI 中面板的颜色
#颜色:WHITE, ORANGE, MAGENTA, LIGHT_BLUE, YELLOW, LIME, PINK, GRAY, LIGHT_GRAY, CYAN, #PURPLE, BLUE, BROWN, GREEN, RED, BLACK
guiPaneColor: YELLOW
#如果安装了 Vault 且此选项设置为 true,经济组件将被禁用。
#本质上,插件会表现得像没有安装 Vault 一样。
ignoreVault: false
#领取套件时清空背包。
clearInv: false
#如果为 true,则在领取套件时会显示背包将被清空的信息。
#在鼠标悬停在套件(GUI 中的物品)时显示。
showClearWarning: false
添加物品:
要添加物品,您必须拥有 ckits.admin 权限!
首先使用 /ckits add <name> 创建新套件。然后挑选您要添加的物品,并通过 /ckits 打开 GUI。
在新套件上右键点击,右下角应该会出现“Insert”按钮。
左键点击该按钮会将您手中的物品添加进去。
Shift+左键点击该按钮会将整个背包的内容添加进去。
如果要移除物品,只需在 GUI 中对该物品 Shift+右键即可。
对于 1.02 及更早版本,请使用命令。
使用 CKits 的服务器:
(如果您希望您的服务器被添加到此列表中,请发送服务器的 IP)
1.) 149.56.24.191:25576
CKits
Simple kits plugin.
Using /ckits command you can view and select which kit you want to claim.
Gui has pages, so you can have as many kits as you want.
Kits have options like limited, stock, cooldown.
This plugin also has vault support, so when it is installed you can set prices for kits.
Commands:
- /ckits -> Opens gui where you can view and collect/buy kits.
- /ckits add <name> -> Adds new kit. To have custom colored names use color codes, for example "&6Name".
- /ckits remove <kit> -> Removes kit.
- /ckits reload -> Reloads configs.
- /ckits save -> Saves configs.
- /ckits stockreset -> Resets stocks to their default values.
- /ckits set <kit> <parameter> <value> -> Parameters:
- - 'needsPermission' - sets if player needs a permission to get kits.
- - 'cost' - replaced 'withcost' subcommand.
- - 'stock' - sets how many kits are available. For no stock use -1.
- - 'isLimited' - sets kit to be limited, one time claim kit, and 'cooldown' parameter to 0.
- - 'cooldown' - sets new cooldown in seconds and 'isLimited' parameter to false. Default value for 24h is 86400.
- /ckits help -> Shows this list.
Version 1.02 and below
- /ckits add <name> <needsPermission> <stock> <isLimited> <cooldown> -> Adds new kit. Color code symbol '&' can be used to create custom colored names. Stock is how many kits are available, -1 for no stock. Cooldown is in seconds. For 24h use 86400. 'isLimited' value is used for one time claim kits.
- /ckits insert <kit> -> Inserts item from hand to kit.
- /ckits takeout <kit> <slot> -> Removes item from kit. Use 'slots' sub command to see which items are in which slot.
- /ckits list -> Shows available kits.
- /ckits slots <kit> -> Get kit's items slots.
- /ckits getperm <kits> -> Get kit's permission.
- /ckits stockreset <kit> -> Resets stock amount to default value for specific kit.
- /ckits withcost <kit> <cost> -> Adds cost to kits. Vault is needed for this feature.
- /ckits stockreset <kit> -> Resets stock of specific kit.
Permissions
- ckits.admin - Allows use of all ckits sub commands.
- ckits.[kit name].claim - Allows to claim specific kit.
Config:
#Custom gui name
guiName: '&0CKits'
#Set color of panes in gui
#Colors: WHITE, ORANGE, MAGENTA, LIGHT_BLUE, YELLOW, LIME, PINK, GRAY, LIGHT_GRAY, CYAN, #PURPLE, BLUE, BROWN, GREEN, RED, BLACK
guiPaneColor: YELLOW
#If vault is installed and this option is set to true, the economy component will be disabled.
#Basically plugin will act like there is no vault.
ignoreVault: false
#Clears inventory when kit is claimed.
clearInv: false
#If true shows that inventory will be cleared when kit gets claimed.
#Shown while hovering over kit (item in gui).
showClearWarning: false
Adding items:
To add items you must have ckits.admin permission!
To add items first create new kit with /ckits add <name>. Then pick items that you want to add and open gui with /ckits.
There right click on your new kit and in bottom right corner there should be Insert button.
When you left click button it will add item from your hand.
When you shift left click button it will add whole inventory contents.
If you want to remove item, just shift right click on that item in gui.
For versions 1.02 and older use commands.
Servers using CKits:
(If you want your server added here just message the IP of the server)
1.) 149.56.24.191:25576
评论 0
登录后参与评分
还没有评论,来抢沙发吧