mirror of
https://github.com/System-End/Discord-MC-Chat.git
synced 2026-04-19 19:45:14 +00:00
Add shared_secret configuration to multi-server and standalone setups
This commit is contained in:
parent
3b4c00401a
commit
32b47486a2
3 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ multi_server:
|
|||
connection:
|
||||
host: "127.0.0.1"
|
||||
port: 5000
|
||||
shared_secret: "your_shared_secret_here"
|
||||
|
||||
# DMCC 命令权限设置
|
||||
# OP 等级对应的官方 Minecraft 权限级别:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue