CustomCommands 自定义指令
作者:TitanDevX
发布时间:2020年1月25日
原生版本:未知
测试支持:1.8,1.9,1.10,1.11,1.12,1.13,1.14,1.15,1.16
创建无限的命令。做一些不可能的酷事。从服务器所有者到服务器所有者
点此下载插件详细介绍
Custom Commands 2.3.0 插件允许您创建无限的自定义命令和子命令,配置简单,功能可靠。该插件提供了完全的自定义能力,可以配置权限、可选和必需参数以及别名,并在命令执行时运行动作、执行其他命令和回复消息。
🎉 Custom Commands
✨ 主要特性
- 创建无限的命令和子命令。
- 配置权限、可选参数、必需参数和别名。
- 在命令执行时运行动作,执行其他命令和回复消息。
- 限制每个玩家的命令使用次数,支持权限控制。
- 在执行命令之间添加延迟!
- 全功能重载系统。
- 支持 Tab 自动补全!
- 命令条件。
- 命令冷却。
- 游戏内编辑命令(新增)。
⌨️ 命令
目前只有几个命令,大部分配置可以通过配置文件完成。
/cuc createCommand <label>- 使用默认值创建一个新命令,可以在commands.yml配置文件中进一步配置。例如:/cuc createCommand rank/cuc reload- 重载插件和配置文件。/cuc edit addExecuteCommand <cmd> <new execute command to add>- 编辑命令,添加执行命令。/cuc edit addReplyMessage <cmd> <new reply message to add>- 编辑命令,添加回复消息。/cuc edit setPermission <cmd> <permission>- 编辑命令,设置权限。/cuc edit setCooldown <cmd> <cooldown>- 编辑命令,设置冷却时间。/cuc edit setUses <cmd> <uses>- 编辑命令,设置使用次数。/cuc edit setWhoCanUse <cmd> <whoCanUse (all, players, console)>- 编辑命令,设置谁可以使用(所有人、玩家、控制台)。/cuc edit addRequiredArg <cmd> <arg name> <arg type (can be onlinePlayer, offlinePlayer, text, message, number)>- 编辑命令,添加必需参数。/cuc edit addOptionalArg <arg name> <arg type>- 编辑命令,添加可选参数。
🗂️ 文件和配置
commands.ymlmessages.ymlconditions.yml
🔗 Wiki
更多信息请参考 CustomCommands Wiki。
⚙️ 配置文件示例 (commands.yml)
#commands.yml example
rank:
permission: "customcommands.rank"
aliases:
- "r"
cooldown: 5
uses: 3
whoCanUse: "all"
requiredArgs:
playerName:
type: "onlinePlayer"
optionalArgs:
reason:
type: "text"
executeCommands:
- "say {playerName} has been ranked up!"
replyMessages:
- "&aYou have ranked up {playerName}!"
conditions:
isOp:
type: "javascript"
expression: "player.isOp()"
onFail:
replyMessages:
- "&cYou must be OP to use this command!"
💖 感谢使用!
感谢您使用 Custom Commands 插件!
❓ 需要支持?
Discord: TitanDev#4343