How to Add an Admin to Your Soldat 2 Server ​
Soldat 2 has two ways to grant admin rights: a permanent admin via PlayFab ID and an RCON password that lets any number of players log in as admin in the game. There is no file-based admin list.
Note
The field for the permanent admin is singular – exactly one PlayFab ID can be stored per server. All further admins log in with the RCON password.
Set the permanent admin via PlayFab ID ​
Soldat 2 identifies players by their PlayFab ID, a 16-character hexadecimal string such as 9FD985AB3FE67850. A Steam ID is not used here.
Find the PlayFab ID ​
Start the server
Start your server via the dashboard and open the server console there.Join the server
Connect to your server. How to do that is explained under Join Server.Read the console output
When you join, the server writes a line following this pattern:1 YOUR_NAME joined the server [9FD985AB3FE67850]The value in square brackets is the PlayFab ID.
Copy the ID
Write down the ID exactly as it appears in the console.
Tip
You can find another player's PlayFab ID the same way – have them connect to your server once and read the matching line from the console.
Enter the PlayFab ID ​
Stop the server
Stop your server via the dashboard.Store the ID
Enter the PlayFab ID into the admin field in the dashboard.Start the server
Start your server. The value is written into theautoconfig.inion start:AdminPlayfabId=9FD985AB3FE67850Join and verify
Connect to your server. A red[Admin]tag appears behind your name in the scoreboard.
Important
The autoconfig.ini is completely rewritten when the server stops. Any change you write into the file while the server is running is lost in the process. Only edit the file while the server is stopped.
Warning
The values Name, Port, WebSocketsPort, WebSocketsRconPort, RconPassword, MaxPlayers, GreetMessage, AdminPlayfabId and ServerPassword are written from the dashboard into the autoconfig.ini on every server start. These values therefore belong in the dashboard, not in the file.
Spelling
You will find two spellings of this key online: AdminPlayfabId and AdminPlayfabID. What counts is the spelling that is already in your autoconfig.ini – keep it exactly as it is.
Further admins via the RCON password ​
For all further admins you use the RCON password. With it, any player can log in as admin directly in the game.
Stop the server
Stop your server via the dashboard.Set the password
Enter your own long password into the RCON password field in the dashboard.Start the server
Start your server.Log in inside the game
Open the console in the game and log in:rcon YourRconPassword
Important
A default password is set out of the box. Make sure to change it – anyone who knows the RCON password has full control over your server.
The in-game console ​
Open the console
PressAlt+~in the game.Enter a command
Commands that affect the server are prefixed withrcon:rcon listplayersList commands
PressingTabshows the available commands and completes your input.
Note
Commands are not case sensitive. rcon ListPlayers and rcon listplayers do the same thing.
Admin commands at a glance ​
| Command | Description |
|---|---|
rcon info | Show information about the server |
rcon listplayers | Show all players with their IDs |
rcon listmaps | Show available maps |
rcon version | Show the server version |
rcon say "<text>" | Send a message to everyone. With a leading ID only to one player: rcon say 2 "text" |
rcon addbot | Add a bot |
rcon rembot | Remove a bot |
rcon setteam <id> <team> | Move a player into a team |
rcon kick <id> | Disconnect a player from the server |
rcon kickall | Disconnect all players from the server |
rcon ban <id> | Ban a player for a limited time |
rcon vote | Start a vote |
rcon restart | Restart the current round |
rcon nextmap | Switch to the next map |
rcon loadmap <mapname> <gamemode> | Load a specific map with a game mode |
rcon loadcycle <file> | Load a map cycle |
rcon addmodifier <name> | Enable a modifier |
rcon removemodifier <name> | Disable a modifier |
rcon reload | Recompile and reload the scripts |
rcon restartserver | Restart the server |
rcon get <variable> | Print the value of a variable |
rcon set <variable> <value> | Set the value of a variable |
Change settings while the server is running ​
With set and get you change values without stopping the server. This works for configuration variables as well as for rule values:
rcon set FillBotsCount 5rcon set Match.MinimumPlayers 4Warning
Changes made with set only apply to the running session. On the next server start the values from the dashboard and the autoconfig.ini apply again.
Tip
To learn how to remove players from your server as an admin, see Kick & Ban Players.