VGKAMI
Advertise Get listed

Game Guides

Mordhau Server Admin Commands and How to Use Them

Published 10 min read

To use Mordhau server admin commands, configure an AdminPassword in the server’s Game.ini, restart the server, join it, open the console, and run AdminLogin <password>. After authentication, use PlayerList to obtain stable PlayFab IDs, then run moderation, map, bot, or server-state commands. For administration without joining the game, configure RCON with its own password and TCP port, restart the server, and connect with an RCON client.

The safest workflow is to stop the server before editing configuration, use IDs rather than names, put ban duration before the reason, and protect RCON because it is unencrypted. The sections below cover setup, every commonly documented command group, map rotation, admin chat, remote console access, and fixes for commands that appear not to work.

What do you need before using Mordhau admin commands?

You need access to the dedicated server files, permission to restart the server, and a console key configured by your game or hosting provider. The relevant configuration file is different on Linux and Windows.

  • Linux: Mordhau/Saved/Config/LinuxServer/Game.ini
  • Windows: MordhauSavedConfigWindowsServerGame.ini

Stop the server before changing either file. The server writes its in-memory configuration back to Game.ini during shutdown, so a live edit can be overwritten. Save the file, then start the server again before testing the new settings.

How do you set a permanent administrator?

Under [/Script/Mordhau.MordhauGameSession], set an explicit password:

AdminPassword=choose-a-long-unique-password

You can also add persistent administrators with repeated Admins=<PlayFabID> entries in the same game-session section. Persistent entries are useful for trusted staff who should retain access across restarts; use the command-based methods later in this guide for temporary membership changes.

How do you log in as a Mordhau server admin?

Join the server, open the in-game console, and authenticate before issuing administrative commands. The documented syntax is:

AdminLogin <password>
  1. Start or restart the server after setting AdminPassword.
  2. Join the server as a player.
  3. Open the console. Many provider guides use the backtick or tilde key; the actual key can be configured.
  4. Enter AdminLogin followed by the exact configured password.
  5. Run a harmless check such as PlayerList to confirm that commands are accepted.

Two Mordhau Guides references use AdminLogin as the canonical command. One provider table labels its login row AdminPass <password>; that is a documentation inconsistency, not a second syntax you should assume works on every build. If AdminLogin fails on a particular server, check that server’s build-specific documentation and verify the configured password.

Which commands manage administrators?

After authentication, these commands inspect or change server-admin membership:

Command Syntax Use
AdminList AdminList Display current administrators.
AddAdmin AddAdmin <PlayFabID or session ID> Grant administrator access through the command system.
RemoveAdmin RemoveAdmin <PlayFabID or session ID> Remove command-based administrator access.

For a stable identity, prefer the PlayFab ID shown by PlayerList. Session IDs can change when a player reconnects, while the documented persistent configuration uses PlayFab IDs.

How do you find the right player ID?

Run:

PlayerList

The output includes player information and PlayFab IDs. Use that ID for kicks, bans, mutes, and admin changes whenever possible instead of relying on a display name that may contain spaces or change during a session.

Additional identity helpers are:

Command Syntax Purpose
LookupPlayer LookupPlayer <SteamID or PlayFabID> Look up a player by Steam or PlayFab identifier.
CopyID CopyID <SessionID> Copy or expose the identifier associated with a session.

What is the command to kick, ban, or mute someone?

Use the player’s PlayFab ID when possible. A name or session ID is accepted by the documented moderation commands, but an ID avoids ambiguity.

Action Syntax Important detail
Kick Kick <PlayFabID or session ID> <reason> Removes the player from the server and records the reason in the command.
Temporary ban Ban <PlayFabID or session ID> <duration in minutes> <reason> Duration comes before the reason.
Unban Unban <PlayFabID> Removes a ban by PlayFab ID.
List bans BanList Displays current bans.
Mute Mute <PlayFabID or session ID> <duration in minutes> Temporarily prevents the player’s voice or chat participation as supported by the server.
Unmute Unmute <PlayFabID or session ID> Removes a mute.
List mutes MuteList Displays current mutes.
Cancel vote kick CancelVotekick Stops an active vote kick.

How are ban and mute durations calculated?

Durations are minutes. For reference, 60 is one hour, 1440 is one day, and 10080 is one week.

Ban 1A2B3C4D5E6F7890 1440 Griefing

The order matters: putting the reason before 1440 can fail without an obvious error, particularly through RCON. If a moderation command appears to do nothing, check the ID, spelling, and argument order first.

How do you change the map or restart a Mordhau match?

Use the match-control commands from the authenticated console or through RCON:

Command Syntax Effect
ChangeLevel ChangeLevel <map name> Loads the specified map and mode name.
RestartLevel RestartLevel Restarts the current level.
AddBots AddBots <number> Adds the requested number of bots.
RemoveBots RemoveBots <number> Removes the requested number of bots.
AddBotsTeam AddBotsTeam <team> <number> Adds bots to a specified team.
RemoveBotsTeam RemoveBotsTeam <team> <number> Removes bots from a specified team.
Slomo Slomo <value> Changes time speed for everyone on the server.
ToggleDamage ToggleDamage Toggles damage.
ToggleStamina ToggleStamina Toggles stamina.

The documented bot syntax identifies team 0 as red and team 1 as blue. Some references show the equivalent team operation written as addbots team <number> <0 or 1>; follow the syntax accepted by your server build if the explicit AddBotsTeam form is rejected.

Because Slomo affects everyone, reserve it for testing or an event and restore the normal value afterward. A speed change is global, not limited to the administrator who entered it.

How do you diagnose server performance?

Enter:

m.ShowServerStats 1

The documented display reports minimum, average, and maximum tick rate. Use those values while reproducing a problem, then compare them after changing the map, bot count, or other server conditions. This command reports server timing; it does not by itself identify whether CPU, memory, network, or a particular map is responsible.

How do map names and rotation work?

MapRotation= lines in Game.ini are ordered. That order supplies the rotation and also feeds map voting. Each entry combines a mode prefix with a map name:

Prefix Mode Example
FFA_ Free-for-all FFA_ThePit
TDM_ Team deathmatch TDM_Camp
SKM_ Skirmish SKM_Grad

Use the complete mode-and-map name with ChangeLevel, for example:

ChangeLevel TDM_Camp

When editing rotation, stop the server first, preserve the order you want players to see, save the file, and restart. Editing while the process is running risks losing the change when the server writes its in-memory settings during shutdown.

How do you send administrator messages in chat?

These commands are entered in the chat box, not the console. Provider documentation describes Y as the chat key; the console is commonly opened with backtick or tilde.

Chat command Syntax Use
/aserver /aserver <message> Send a server-wide administrator message.
/achat /achat <message> Send an administrator chat message.
/announce /announce <duration in seconds> <message> Show an announcement for a specified number of seconds.
/apopup /apopup <duration in seconds> <PlayFabID or name> <message> Show a timed popup to one player.
/asay /asay <message> Send an administrator say message.
/awhisper /awhisper <PlayFabID or name> <message> Whisper an administrator message to one player.

Use a PlayFab ID for targeted messages when names are duplicated or contain unusual characters.

How do you use Mordhau RCON?

RCON stands for remote console. It uses the same command list as in-game administration but lets you administer the server over TCP without joining the match.

How do you enable RCON?

In the game-session section of Game.ini, add an RCON password and port:

RconPassword=use-a-separate-long-password
RconPort=7778
  1. Stop the server.
  2. Edit Game.ini and set RconPassword and RconPort under [/Script/Mordhau.MordhauGameSession].
  3. Save the file and restart the server.
  4. Allow the selected TCP port through the firewall only where needed.
  5. Connect with an RCON client such as mcrcon.

Do not leave RconPassword blank. A blank value causes a password to be generated at startup, which is inconvenient for scripted or repeat administration. Use a password different from AdminPassword.

What is an RCON command example?

mcrcon -H 127.0.0.1 -P 7778 -p your-rcon-password "playerlist"
ban 1A2B3C4D5E6F7890 1440 Griefing
changelevel TDM_Camp
addbots 8

The first line queries the player list through a local RCON connection. The following lines show the same moderation and match commands you can issue after connecting.

How should you secure RCON?

RCON is unencrypted. Anyone who can observe the connection can potentially read the password and commands, so treat the RCON TCP port as a sensitive management interface.

  • Use a long, unique RCON password and do not reuse the in-game admin password.
  • Bind or firewall the port so it is reachable only from trusted administration systems when possible.
  • Prefer a localhost connection or an SSH tunnel instead of exposing RCON directly to the public internet.
  • Remember that RCON uses TCP; the game, beacon, and query ports are separate UDP services and require different firewall rules.

Why are my Mordhau admin commands not working?

Most failures come from authentication, an overwritten configuration file, a blocked RCON port, or malformed arguments. Check the symptom that matches your situation.

Commands are rejected in the game

  • Confirm that you ran AdminLogin <password> after joining.
  • Compare the password with the current AdminPassword in Game.ini.
  • Make sure the server was restarted after changing the file.
  • Use AdminList or PlayerList to verify that the session is recognized.

My Game.ini changes disappeared

Stop the server before editing. A running server can write its in-memory values back to disk during shutdown and erase live edits. Save the file while stopped, then restart and test.

RCON says the connection was refused

Check that RconPort exists under the game-session section and restart the server after adding it. A missing or stale configuration value means no listener may be available on the port you selected.

RCON times out

Check the TCP firewall rule for the RCON port and confirm that the client is connecting to the correct host and port. Do not troubleshoot it as a game-port problem: game, beacon, and query services use UDP.

RCON authentication fails

Set an explicit RconPassword, restart the server, and use that value in the client. If the setting is blank, the server generates a password at startup instead of using a predictable one.

A command silently does nothing

Check capitalization and spelling, verify the target with PlayerList, and inspect argument order. The most common syntax mistake is placing the ban reason before the duration; the documented form is Ban <ID> <minutes> <reason>.

What is a safe day-to-day admin workflow?

For routine moderation, use this short sequence:

  1. Authenticate with AdminLogin or connect through authenticated RCON.
  2. Run PlayerList and copy the target’s PlayFab ID.
  3. Choose the least disruptive action: warn through chat, mute, kick, or a time-limited ban.
  4. For a ban, convert the intended period to minutes and place that number before the reason.
  5. Use BanList or MuteList to verify the result.
  6. Record the reason and duration in your staff log so another administrator can reverse or extend the action consistently.

For scheduled match control, test the exact map name and bot command on a private or low-population session first. Global commands such as Slomo, damage toggles, and stamina toggles affect every connected player.

Which passwords and ports should be separate?

Use separate credentials for in-game administration and RCON. AdminPassword gates the in-game login, while RconPassword authenticates remote console connections. Separating them limits the damage if one credential is disclosed and makes it possible to rotate remote access without changing every staff member’s in-game procedure.

Likewise, do not assume the RCON port is the same as the game, beacon, or query port. The documented example uses RconPort=7778, but your chosen port must be available, permitted by the TCP firewall, and reachable from the administration host.

Can you manage a server without maintaining these files yourself?

Managed Mordhau hosting can handle SteamCMD installation, Game.ini editing, port rules, restarts, and RCON setup through a provider’s control panel. That reduces maintenance work, but you still need to understand the command syntax, identity rules, and RCON security because provider panels may expose the same operations with different labels. Verify that the host supports the Mordhau server build and gives you access to backups or configuration recovery before moving a live community.

Frequently Asked Questions

Can I use a player’s Steam ID instead of a PlayFab ID?

Some lookup and session commands accept Steam IDs, but the administration workflow documents PlayFab IDs as the stable identifier for moderation and persistent admin entries. Use LookupPlayer when you need to translate or verify an identifier before acting.

Does changing MapRotation immediately change the current map?

No. Ordered MapRotation= entries affect rotation and map voting; they do not replace the level already running. Use ChangeLevel for an immediate map switch, then restart after editing the file so the saved rotation is loaded.

Is RCON safer than joining the game to administer the server?

RCON is more convenient for remote work, but the protocol is unencrypted. A localhost connection or SSH tunnel with a restricted TCP firewall rule is safer than exposing the RCON port broadly, and it should always use a unique password.

What happens if I remove an administrator with RemoveAdmin?

RemoveAdmin changes command-based administrator membership. It does not remove a matching Admins=<PlayFabID> entry in Game.ini; delete that persistent entry while the server is stopped if the person must lose access after future restarts.