本文章基于mcdr官方文档,存在时效性,撰写时间为2023-5-20

恭喜您已经完成了mcdr的权限配置,下一步是mcdr的服务器相关配置

# Configuration file for MCDReforged
# Check https://mcdreforged.readthedocs.io/en/latest/configure.html for detail


# =========================================
# |          Basic Configuration          |
# =========================================


# The language that MCDR will use to display information
# Examples: "en_us", "zh_cn"
language: en_us


# The working directory of the server. If you use the default value server/ I will suggest you put all the files related to the server into the server/ directory
working_directory: server


# The console command to start the server. Examples:
start_command: java -Xms1G -Xmx2G -jar minecraft_server.jar nogui


# The handler to the specific way to parse the standard output text of the server and the correct command for server control
# vanilla_handler, for Vanilla / Carpet / Fabric server
# beta18_handler, for Vanilla server in beta1.8 versions
# bukkit_handler, For Bukkit / Spigot server with Minecraft version below 1.14, and Paper / Mohist server in all version
# bukkit14_handler, For Bukkit / Spigot server with Minecraft version 1.14 and above
# forge_handler, For Forge server
# cat_server_handler, For CatServer server
# bungeecord_handler, for Bungeecord server
# waterfall_handler,  for Waterfall server
# velocity_handler,  for Velocity server
handler: vanilla_handler


# The encoding / decoding format used to encode / decode message to the server.
# Examples: "utf8", "gbk"
# Leave it blank for MCDR to automatically detect system encoding

# MCDR -> Server
encoding:

# Server -> MCDR
decoding:


# The list of directory path where MCDR will search for plugin to load
# Example: "path/to/my/plugin/directory"
plugin_directories:
- plugins


# rcon setting
# if enabled, plugins can use rcon to query commands from the server
rcon:
  enable: false
  address: 127.0.0.1
  port: 25575
  password: password


# If set to true, MCDR will detect if there's a new version every 24h
check_update: true


# Advance console switch powered by prompt-toolkit
# Set it to false if you need to redirect the stdin/stdout of MCDR
advanced_console: true


# ==========================================
# |         Advanced Configuration         |
# ==========================================


# When set to true, MCDR will not start the console thread for handling console command input
# Don't change it to true unless you know what you are doing
disable_console_thread: false


# When set to true, MCDR will remove all console font formatter codes before any message gets printed onto the console
disable_console_color: false


# A list of customizing info reactor classes to handle the info instance. The classes need to be subclasses of AbstractServerHandler
custom_handlers:


# A list of customizing info reactor classes to handle the info instance. The classes need to be subclasses of AbstractInfoReactor
custom_info_reactors:


# The required time interval in second for watchdog to consider the task executor thread is not responding. Set it to 0 to disable watchdog
watchdog_threshold: 10


# Debug mode switches
debug:
  all: false
  mcdr: false
  handler: false
  reactor: false
  plugin: false
  permission: false
  command: false
  task_executor: false


# =========================================
# |         Missing Configuration         |
# =========================================

# Options below were missing and set by MCDR with the default value
# Remember to check and update them as soon as possible

必选:

"language: en_us",改为"language: zh_cn"

"start_command: java -Xms1G -Xmx2G -jar minecraft_server.jar nogui",改为"start_command: 您自己的启动命令"

在handler:xx 这里,您需要选择您服务器相对应的类型,具体在上面 # 后面有,比如fabric服务器就是对应vanilla_handler

非必选,但强烈建议:

rcon:
  enable: false
  address: 127.0.0.1
  port: 25575
  password: password

为了开启这个,您先需要进入 mcdr目录\server\server.properties 去配置参数

rcon.port=xxxxx 对应 port: xxxxx

enable-rcon=false 对应 enable: false #建议都改为ture

rcon.password=xx 对应 password: xx

恭喜您!到此,您应该可以正确启动您的服务器了,如果您有mcdr插件需要安装,请放到 mcdr目录\plugins