{
/// 配置文件提示文件,使用如 VSCode 等编辑器可以让支持本条设置以实现辅助提示功能
"$schema": "https://github.com/ParaParty/JustChat/raw/V2/json-schema/V2/config.json",
/// 配置文件版本
"version": {
"config": 2
},
/// JustChat 连接服务设置
"connection": {
/// 服务器模式设置
"server": {
"enable": true,
"port": 38440
},
/// 客户端模式设置 (暂未支持)
"client": {
"enable": false,
"address": "",
"port": 38440
},
"name": "", // 本终端名称
"ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 本终端编号 ( UUID 格式 )
},
/// 服务组设置
"services": [
/// 一个服务组
{
/// 这个服务组的绑定设置
"bind": {
/// 和哪些QQ群绑定
"qqgroups": [
123456, xxxxxx
],
/// 和哪些 Minecraft 服务器绑定,依然是 UUID 格式
"minecraft": [
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
]
},
/// 这个服务组的特殊设置,具体介绍见后文
"events": {
"PlayerList_All": false // 这里覆盖了全局设置里的一个开关
}
"message_format": {
"Info_PlayerJoin": "[%SERVER%] %SENDER% 来搬砖辣!",
"Info_PlayerDisconnect": "[%SERVER%] %SENDER% 退出搬砖。"
}
},
/// 另一个服务组
{
"bind": {
"qqgroups": [
xxxxxx
],
"minecraft": [
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
]
},
"message_format": {
"Message_Overview": "[*][%WORLD_DISPLAY%]%SENDER%: %CONTENT%"
}
}
],
/// 对于QQ群的特殊设置
"qqgroups": [
/// 一个QQ群的特殊设置
{
"groupid": 123456,
"config": {
"events": {
"PlayerList_All": true // 这里覆盖了一个服务组设置里的一个开关
},
"message_format": {
"Message_Overview": "[*][%WORLD_DISPLAY%]%SENDER%: %CONTENT%"
}
}
}
],
/// 全局设置
"global_configuration": {
/// 设置开关
"events": {
"Registration_All": true,
"Info_All": true,
"Info_PlayerNetwork": true,
"Info_PlayerDeath": true,
"Info_Other": true,
"Message_All": true,
"PlayerList_All": true
},
/// 消息输出格式
"message_format": {
"Info_General": "[%SERVER%] %CONTENT%",
"Info_PlayerJoin": "[%SERVER%] %SENDER% joined the game.",
"Info_PlayerDisconnect": "[%SERVER%] %SENDER% left the game.",
"Info_PlayerDead": "[%SERVER%] %SENDER% dead.",
"Message_Overview": "[*][%SERVER%][%WORLD_DISPLAY%]%SENDER%: %CONTENT%",
"Message_ImageAlternative": "[IMAGE]",
"PlayerList_Layout": "[%SERVER%] There are %NOW%/%MAX% players online.%PLAYERS_LIST%",
"Registration_online": "Server %NAME% is now online.",
"Registration_offline": "Server %NAME% is now offline."
}
}
}