multi server

This commit is contained in:
Xujiayao 2025-11-17 15:02:19 +08:00
parent 8a7741cf65
commit a49512721e
2 changed files with 15 additions and 3 deletions

View file

@ -16,7 +16,11 @@ language: en_us
# 多服务器功能
multi_server:
server_name: your_server_name_here
connection:
host: localhost
port: 5000
server_name: your_server_name_here
security:
# This secret key must be identical to the one in the standalone server's config.yml.
# It is used to authenticate this client to the standalone server.
shared_secret: your_shared_secret_here

View file

@ -14,6 +14,10 @@ mode: standalone
# 语言设置
language: en_us
# Minecraft 版本设置
# 取你所有子服务器中最高的版本
minecraft_version: ${minecraft_version}
# 机器人设置
bot:
token: your_token_here # Discord 机器人令牌
@ -61,8 +65,12 @@ broadcasts:
# 多服务器功能
multi_server:
port: 5000
minecraft_version: ${minecraft_version}
connection:
port: 5000
security:
# This secret key is automatically generated on first startup.
# You MUST copy this exact key to all your multi-server clients.
shared_secret: will_be_auto_generated
servers:
- name: SMP
color: yellow