自定义命令插件,可以执行动作链
支持1.13-26.2, 更早的版本暂未测试, 理论上应该支持
在CommandSystem/commands.yml中定义命令,通过/customcommand reload命令重载以加载到服务器中
详细使用文档请参阅 USAGE.md
命令名字: #支持中文
aliases: #命令别名
- '命令别名1'
- '命令别名2'
cooldown: 100 #命令的冷却时间,以tick为单位
cooldown_message: '&cexample命令正在冷却中' #命令冷却时的提醒消息,如果没有此项将不会发送消息
permission: '命令的权限'
actions: #命令执行的动作
- 'action1'
- 'action2'
argument_settings: #命令的参数配置
0: #第1个参数(从0开始计数)
type_settings: #参数类型校验
type: number
min: 0
max: 10
hint: '&c%argument%不是一个有效的数字'
tab_complete: #参数的Tab补全,支持list,player_name和material类型
type: list
values:
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
- '10'
min_length: #最少参数数量
value: 1
hint: '&c参数不足'
max_length: #最多参数数量
value: 1
hint: '&c参数过长'