-
Notifications
You must be signed in to change notification settings - Fork 10
Startup Commands
Brendon edited this page Oct 7, 2020
·
1 revision
When your server starts up you may wish to issue some commands through the console to it. This is now possible via a new section in the <ServerConfig>
section of the configuration file. You can create an element within that section called <StartupCommands>
and then each seperate command can be called sequentially from elements named <CommandText>
For example:
<ServerConfig>
<BedrockServerExeLocation>C:\Program Files (x86)\Bedrock\BedrockServer\bedrock_server.exe</BedrockServerExeLocation>
<BackupFolderName>BedrockServiceBackup</BackupFolderName>
<StartupCommands>
<CommandText>
help 1
</CommandText>
<CommandText>
help 2
</CommandText>
</StartupCommands>
</ServerConfig>
This will run two commands sequentially after the server has started.