MCDR插件配置介绍
配置文件目录plugins/easybot_mcdr/config.yml
默认配置
{
"token": "",
"ws": "ws://localhost:26990/bridge",
"debug": false,
"message_sync": {
"ignore_mcdr_command": true
},
"message": {
"start_bind": "§f[§a!§f] 绑定开始,请加群§e12345678§f输入: §a“绑定 #code”§f 进行绑定, 请在§6#time§f完成绑定!",
"bind_success": "§f[§a!§f] 绑定§f §a#account §f(§a#name§f) 成功!"
},
"enable_white_list": false,
"events": {
"bind_success": {
"exec_command": false,
"add_whitelist": true,
"comamnds": ["say 玩家#player绑定账号#name(#account)成功"]
},
"un_bind": {
"kick": true,
"remove_white_list": true,
"exec_command": false,
"comamnds": ["say 玩家#player解绑了账号。"]
},
"message": {
"on_at": {
"exec_command": true,
"comamnds": [
"title #player title {\"text\":\"有人@你\", \"color\": \"green\"}",
"title #player subtitle {\"text\":\"请及时处理\", \"color\": \"green\"}"
],
"sound": {
"play_sound": true,
"run": "execute as #player at @s run playsound minecraft:entity.player.levelup player #player ~ ~ ~ 1 2",
"count": 4,
"interval_ms": 200
}
}
}
}
}
⚠️ 注意:
- 当启用白名单联动(enable_white_list=true)时,add_whitelist/remove_white_list 参数需要设为 true 才能生效
- 消息模板中的时间变量会自动转换为服务器本地时区
- 命令执行权限取决于 MCDR 的权限系统配置
message_sync
消息同步设置
ignore_mcdr_command
在消息同步时候,是否忽略所有以!!
开头的 MCDR 命令