This guide covers how to set up admin access and use admin commands on your Mordhau dedicated server hosted with Legion Hosting, including setting the admin password, logging in, common commands, and persistent admin lists via Steam IDs. For initial server setup and connection instructions, see Mordhau Server Setup Guide. For workshop mod support, see Mordhau Mod and Workshop Support.
Admin Setup
Setting up admin access lets you moderate your server, kick/ban players, and change settings on the fly without restarting.
Setting the Admin Password
- In GPanel, go to the Startup tab.
- Set the
ADMIN_PASSWORDvariable to a strong, unique password. - Restart the server.
Logging In as Admin In-Game
- Join your server.
- Open the console by pressing the ~ (tilde) key.
- Type the following command:
adminlogin YourAdminPassword - You should see a confirmation message indicating you have admin privileges.
Common Admin Commands
Once logged in as admin, you can use these commands in the console:
| Command | Description |
|---|---|
adminlogin <password> | Authenticate as admin |
adminlist | List all currently authenticated admins |
kick <player name> | Kick a player from the server |
ban <player name> | Permanently ban a player |
unban <player name> | Remove a player's ban |
banlist | Display all banned players |
changelevel <map/mode> | Change the current map (e.g., changelevel Grad/FL_Grad) |
slomo <factor> | Set game speed (1.0 = normal, 0.5 = half speed) |
addbots <count> | Add AI bots to the match |
removebots <count> | Remove AI bots from the match |
say <message> | Send a server-wide chat message |
Persistent Admin List via Steam IDs
For a more permanent setup, you can add Steam64 IDs directly to Game.ini so that specific players are always admin without needing to type a password each session:
[/Script/Mordhau.MordhauGameSession]
Admins=76561198000000001
Admins=76561198000000002
Each Admins= line should contain one Steam64 ID. You can find your Steam64 ID on sites like steamid.io.
The Game.ini file is located at:
Mordhau/Saved/Config/LinuxServer/Game.ini
You can access it through the File Manager in GPanel, or via SFTP. Always stop your server before making edits.
Related Articles
- Mordhau Server Setup Guide
- Mordhau Mod and Workshop Support
- How to Find Your Server IP and Port
- Server Startup Guide
Need Help?
If you run into an issue not covered in this guide, our support team is available to assist.