需要 ValhallaMMO!
ValhallaKits 是一款轻量级的套装插件,允许你为玩家的领取制作各种套装。
套装可以具有以下特性:
- 拥有冷却时间(或设为单次使用)
- 设置消耗(通过 Vault 实现)
- 在获得时执行命令
- 被可配置的权限锁定
- 最多包含 45 个物品
- 每个物品都可以应用动态物品修饰器(Dynamic Item Modifiers)。
每个物品支持任何类型的自定义元数据,因此你可以使用来自其他插件的自定义物品。
可以通过游戏内的 /valhallakits 命令或 /kits 命令来创建和配置套装。(EssentialsX 也有一个 /kits 命令,如果你同时使用该插件,建议为其中一个设置别名以便于使用)
玩家加入服务器时也可以自动获得套装。
重启服务器不会重置冷却时间。
命令
-
/kit Player 打开一个 GUI,向玩家显示所有可用的套装。
-
/kit <kit> Player 给予发送命令的玩家一个套装。如果玩家没有该套装所需的权限、资金或未度过冷却时间,则不会发放套装。
-
/kits create <name> 创建一个具有给定名称的空套装。
-
/kits edit 打开套装编辑 GUI。
-
/kits setprice <kit> <price> 设置套装的 Vault 价格。
-
/kits setcooldown <kit> <cooldown> 设置套装的冷却时间(毫秒)。如果在命令中省略冷却时间参数,则该套装变为单次使用。
-
/kits setpermission <kit> <permission> 设置获取套装所需的权限。该权限也会被注册,以便像 LuckPerms 这样的插件更容易识别和管理。
-
/kits give <kit> <player> 将任意套装给予任意玩家,忽略其冷却时间、不扣除费用,且不需要玩家拥有特定权限。
-
/kits resetcooldown <kit> <player> 重置特定玩家对某个套装的冷却时间,使其可以再次领取该套装。
-
/kits addcommand <kit> <command> 添加一个命令,使该套装在被领取时执行此命令。
-
/kits removecommand <kit> <command> 移除套装要执行的命令。
-
/kits clearcommands <kit> 清除套装中的所有命令。
-
/kits setdescription <kit> <description> 设置 /kit 界面中套装图标的描述。
-
/kits setdisplayname <kit> <displayname> 设置 /kit 界面中套装图标的显示名称。
-
/kits seticon <kit> <icon> 设置 /kit 界面中套装图标的材质。
-
/kits setmodeldata <kit> <modeldata> 设置 /kit 界面中套装图标的自定义模型数据,以便你可以使用资源包为其赋予精美的自定义纹理。
该插件提供了两个 PlaceholderAPI 占位符,用于以两种不同格式显示套装的冷却时间。
%valhallakits_kit_cooldown_timestamp1_<kitname>% 以 hh:mm:ss 格式显示冷却时间。
%valhallakits_kit_cooldown_timestamp2_<kitname>% 以 h, m 或 s.ms 格式显示冷却时间。例如,如果一个套装有 24 小时 30 分钟的冷却时间,它将显示为 24h。
权限
valhallakits.allkits
新套装默认拥有的权限,拥有此权限即可访问所有套装。
valhallakits.managekits
管理和编辑套装的权限。
享受使用本插件!
Requires ValhallaMMO!
ValhallaKits is a lightweight kits plugin allowing you to make kits for your players to claim.
Kits can have
- A cooldown (or be single-use)
- Have a cost (using Vault)
- Execute commands when obtained
- Be locked behind a configurable permission
- Have up to 45 items
- Each item can have Dynamic Item Modifiers.
Each item supports any type of custom metadata, so you can use custom items from other plugins.
Kits can be created and configured from within the game using the /valhallakits command or /kits. (EssentialsX also has a /kits command, so you may want to use an alias for one of the two for ease of use if you use that plugin)
Kits may also be given when a player joins
Cooldowns do not reset on server restarts
Commands
-
/kit Player command which opens a GUI displaying all available kits to them
-
/kit <kit> Player command which gives the command sender a kit. The kit is not given if the player doesn't have the permission, funds, or cooldown for this kit.
-
/kits create <name> Creates an empty kit with the given name.
-
/kits edit Opens the kit editing GUI.
-
/kits setprice <kit> <price> Sets the Vault price of the kit.
-
/kits setcooldown <kit> <cooldown> Sets the cooldown in milliseconds to the kit. If you leave the cooldown out of the command, the kit becomes single-use instead.
-
/kits setpermission <kit> <permission> Sets the permission required to get the kit. The permission is also registered so it's easier to pick up with plugins like LuckPerms.
-
/kits give <kit> <player> Gives any kit to any player, ignoring their cooldowns, not costing money, and not requiring them to have a permission.
-
/kits resetcooldown <kit> <player> Resets the cooldown of a specific kit for a player so they may get the kit again.
-
/kits addcommand <kit> <command> Adds a command for the kit to execute.
-
/kits removecommand <kit> <command> Removes a command for the kit to execute.
-
/kits clearcommands <kit> Clears all commands from the kit.
-
/kits setdescription <kit> <description> Sets the description of the kit icon in /kit
-
/kits setdisplayname <kit> <displayname> Sets the display name of the kit icon in /kit
-
/kits seticon <kit> <icon> Sets the icon material of the kit icon in /kit
-
/kits setmodeldata <kit> <modeldata> Sets the custom model data of the kit icon in /kit, in case you want to give it a fancy custom texture with a resource pack
The plugin has two PlaceholderAPI placeholders to display a kit's cooldown in two different formats.
%valhallakits_kit_cooldown_timestamp1_<kitname>% displays the cooldown in hh:mm:ss format %valhallakits_kit_cooldown_timestamp2_<kitname>% displays the cooldown in h, m, or s.ms format. If a kit has a 24 hour and 30 minute cooldown for example it'll display 24h
Permissions
valhallakits.allkits
The default permission all new kits have, and with this permission you also have access to every kit.
valhallakits.managekits
The permission to manage and edit kits
Enjoy the plugin!
评论 0
登录后参与评分
还没有评论,来抢沙发吧