You remove players from a Mordhau server through RCON. This lets you manage your server from your PC without being in the game yourself. RCON is disabled by default and has to be set up once.
Set up RCON
-
Assign a port
RCON needs a port of its own. Assign an additional port to your server in the dashboard and note the value. -
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open the Game.ini
Open the following file:/Mordhau/Saved/Config/LinuxServer/Game.ini -
Enable RCON
In the section[/Script/Mordhau.MordhauGameSession]enter your RCON password and the assigned port:[/Script/Mordhau.MordhauGameSession] RconPassword=ASecurePassword RconPort=YourRconPort RconTimeout=120.000000 -
Start the server
Save the file and start your server. -
Connect via RCON
Connect with an RCON tool that supports the Source RCON protocol. Enter the IP address of your server, the RCON port and the RCON password there.
List the players
For kicks and bans you need the player's PlayFab ID. The following command returns it:
playerlist
The server returns one line per player with the PlayFab ID and the player name.
Kick a player
kick <PlayFabID> <reason>
The player is disconnected from the server immediately but can rejoin at any time.
Ban a player
ban <PlayFabID> <duration> <reason>
The duration is given in minutes. If you enter 0, the ban is permanent.
Lift a ban
unban <PlayFabID>
With banlist you can check all active bans and their remaining duration beforehand.
Mute a player
mute <PlayFabID> <minutes>
unmute <PlayFabID>
With mutelist you get all currently muted players.
Command overview
| Command | Description |
|---|---|
playerlist |
Shows all connected players with PlayFab ID and name |
kick <ID> <reason> |
Disconnects a player from the server |
ban <ID> <minutes> <reason> |
Bans a player, 0 means permanent |
unban <ID> |
Lifts a ban |
banlist |
Lists all active bans with their duration |
mute <ID> <minutes> |
Mutes a player |
unmute <ID> |
Unmutes a player |
mutelist |
Lists all muted players |
addadmin <ID> |
Adds a player as an admin |
removeadmin <ID> |
Removes an admin |
adminlist |
Shows all admins |
say <text> |
Sends a message to all players |
changelevel <map> |
Changes the map |
killplayer <ID> |
Kills a player in the game |
info |
Shows information about the server |
