This is for the people who are tired of carefully unpacking every new Minecraft Bedrock server release to avoid clobbering their modified files (although maybe that's mostly me...).
The launcher takes its configuration from the file .\Config\config.json in the same directory as the binary. The default configuration is below:
{
"DownloadPage": "https://www.minecraft.net/en-us/download/server/bedrock",
"PreserveFiles": [
"allowlist.json",
"permissions.json",
"server.properties",
"worlds"
],
"TargetDir": "C:\\Minecraft",
"WorldName": "TestWorld"
}TargetDiris the parent directory where the unpacked servers are storedWorldNameis where each server's contents will be unpackedDownloadPageis the link to the webpage where you download Bedrock server releasesPreserveFilesis the list of files/directories you don't want overwritten when unpacking the new server
You shouldn't have to update the default DownloadPage or PreserveFiles, but if there is some kind of issue please post it.
There isn't really a CLI, but the WorldName setting can be overridden by the first command line argument, e.g.:
.\BedrockServerLauncher.exe TerrariaThe following server commands are currently supported:
kick <playerNameOrXuid> <reason>
stop
save [hold|resume|query]
allowlist [on|off|list|reload]
allowlist [add|remove] <playerNameOrXuid>
permission [list|reload]
op <playerNameOrXuid>
deop <playerNameOrXuid>
changesetting <setting> <value>
save hold
save query
save resume