Granting admin rights lets you manage your server easily and comprehensively with full control. As an admin, you can use all available game options and features directly in the game. Below, you'll find all the steps you need to assign admin rights to your server.
You'll need your server's admin password to log in as an admin. Your server generates it randomly when it starts for the first time and saves it in the managed-secrets.env file. You can find this file in the config folder under the Files tab.
The password is listed in the file after ADMIN_PASSWORD=. To set your own password, replace the value and save the file. Keep the single quotation marks around the password, and use only letters and numbers if possible. Don't change passwordAdmin in serverDZ.cfg: your server overwrites the value each time it starts with the password from managed-secrets.env.
For the change to take effect, you need to restart the server. Then connect to your server and open the in-game chat. Run the following command to log in as an admin:
#login password
Here is a list of some available commands you can use with your administrator rights:
| COMMAND | DESCRIPTION |
|---|---|
| #login adminpassword | Log in as the server admin. |
| #logout | Log out as admin. |
| #mission filename Difficulty | Select a mission with a known name and set the difficulty. The difficulty parameter is optional; if it's not set, the current difficulty remains unchanged. |
| #missions | Select a mission. |
| ##restart | Restart a mission. |
| #reassign | Restart completely and reassign roles. |
| #shutdown | Shut down the server. |
| #restartserver | Restart the server. |
| #shutdownserveraftermission | Shut down the server after the mission ends. |
| #restartserveraftermission | Restart the server after the mission ends. |
| #init | Reload the server configuration file loaded with -config options. |
| #exec ban Name#exec ban ID#exec ban #Player | Lets you ban a player. |
| #kick Name#kick ID#kick #Player | Lets you kick a player from the server. |
| #monitor (Intervall in Sekunden) | Displays server performance information. If the interval is 0, monitoring stops. |
| #monitords (Intervall in Sekunden) | Displays performance information in the server console. If the interval is 0, monitoring stops. |
| #debug off | Disable debugging. |
| #debug (Intervall in Sekunden) | The default interval is 10 if no other interval is specified. |
| #debug (Befehl) (Parameter) | Several commands are available: JIPQueueuserQueuecheckFiletotalSentuserSentuserInfo. You can disable any command by adding the parameter off, for example, #totalSent off. The output varies depending on the command. Some commands output to the log file, others to the screen, and so on. Please note that you need a debugger that can capture OutputDebugString on the client computer. |
| #debug (Befehl) | Log out as admin. |
| #logout | There are two available commands: console sends the contents of the server console to the sender. von outputs to the log file defined in server.cfg, which could be named „server_console.log“, for example. You'll receive confirmation of these commands in the chat channels. |
