How to Add an Admin to Your Mordhau Server ​
Admins on a Mordhau server are entered in the Game.ini. What you use is the player's PlayFab ID – not their SteamID64.
Important
Mordhau uses PlayFab IDs today. That is a short string of digits and capital letters, for example 909275ECE8FEDDB. Older guides that tell you to put a 17-digit SteamID64 into Admins= are outdated. In the Game.ini, SteamIDs only remain in the old Legacy lists for bans and mutes.
Find out the PlayFab ID ​
You read a player's PlayFab ID through RCON. The player has to be online on your server for this.
Set up RCON
How to enable RCON and connect to it is described under Kick & Ban Players.List the players
Run the following command through RCON:playerlistCopy the ID
The server returns one line per player with the PlayFab ID and the player name. Copy the ID of the player you want to make an admin.
Add an admin through the Game.ini ​
Stop the server
Stop your server via the dashboard.Warning
Only edit the
Game.iniwhile the server is stopped. Mordhau completely rewrites the file on shutdown – changes made while it is running are lost.Connect via SFTP
Connect to your server via SFTP.Open the Game.ini
Open the following file:/Mordhau/Saved/Config/LinuxServer/Game.iniEnter the admins
In the section[/Script/Mordhau.MordhauGameSession]add oneAdmins=line per admin:ini[/Script/Mordhau.MordhauGameSession] Admins=909275ECE8FEDDB Admins=A1B2C3D4E5F6789Note
Every ID needs its own line. Writing multiple IDs into one line separated by commas does not work.
Start the server
Save the file and start your server. The admin list is read on server start.
Set an admin password ​
In addition to the admin list, Mordhau supports an admin password for your server. It is set in the same section of the Game.ini:
[/Script/Mordhau.MordhauGameSession]
AdminPassword=YourAdminPasswordWarning
Anyone who knows the admin password can gain admin rights on your server with it. Only pass it on to people you trust and use a different password than your server password. Leave the value empty if you only want to work with the Admins= list.
Manage admins through RCON ​
Once RCON is set up you can also manage admins while the server is running – without stopping it.
| Command | Description |
|---|---|
adminlist | Shows all registered admins |
addadmin <PlayFabID> | Adds a player as an admin |
removeadmin <PlayFabID> | Removes an admin again |
Tip
Admin rights granted through RCON take effect immediately. Also add the admin to the Admins= list in the Game.ini if the entry is meant to be permanent – with adminlist you can check who is registered after a restart.
Note
The folder LinuxServer and the Game.ini are only created after your server has fully started once. If you cannot find the file, start your server once and stop it again.
Tip
To learn what you can do as an admin and how to remove players, see Kick & Ban Players.