Add shared_secret configuration to multi-server and standalone setups

This commit is contained in:
Xujiayao 2026-01-20 14:59:25 +08:00
parent 3b4c00401a
commit 32b47486a2
3 changed files with 4 additions and 1 deletions

View file

@ -20,7 +20,8 @@ public class YamlUtils {
private static final List<String> REQUIRED_MODIFIED_KEYS = List.of(
"discord.bot.token",
"multi_server.server_name"
"multi_server.server_name",
"multi_server.connection.shared_secret"
);
/**

View file

@ -17,6 +17,7 @@ multi_server:
connection:
host: "127.0.0.1"
port: 5000
shared_secret: "your_shared_secret_here"
# DMCC 命令权限设置
# OP 等级对应的官方 Minecraft 权限级别:

View file

@ -19,6 +19,7 @@ multi_server:
connection:
host: "127.0.0.1" # Limit accessibility, change to "0.0.0.0" if allow external connections
port: 5000
shared_secret: "to_be_auto_replaced"
servers:
# This list acts as a whitelist. Only clients with a server name defined here are allowed to connect.
- name: "SMP"