Admin rights on a Soldat server work through two mechanisms: an admin password that any player can log in with inside the game, and a permanent admin list that stores IP addresses.
Set the admin password
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open the configuration
Classic server: opensoldat.iniand go to the[NETWORK]section.OpenSoldat: open the file
configs/server.cfg. -
Enter the password
Classic server:Admin_Password=YourAdminPasswordOpenSoldat:
set sv_adminpassword YourAdminPassword -
Start the server
Save the file and start your server.
Log in as admin in the game
-
Join the server
Connect to your server. See Join Server for how to do that. -
Open the chat
Open the chat in the game. -
Log in
Enter the following command with your admin password:/adminlog YourAdminPasswordExample:
/adminlog Rxz12F -
Use the commands
The admin commands are then available in the chat – all of them start with a/.
Permanent admins through the admin list
Permanent admins are managed in the file remote.txt in the main directory of your server. It holds one IP address per line, optionally followed by a comment.
Add an admin in the game
-
Log in as admin
Log in with/adminlogas described above. -
Add the player
Enter the following command in the chat with the player's name:/adm <PlayerName>The server looks up the player's IP address itself and writes it into
remote.txt.If you already know the IP address, you can add it directly – the player does not have to be on the server for that:
/admip <IP address>
Add an admin through the file
-
Stop the server
Stop your server via the dashboard. -
Open remote.txt
Open the fileremote.txtin the main directory of your server via SFTP. If it does not exist yet, create it. -
Enter the IP addresses
Enter one IPv4 address per line. You can add a comment behind it:127.0.0.1 [!] Host 198.51.100.5 [!] Another entry -
Start the server
Save the file and start your server.
Remove an admin
/unadm <IP address>
Remote admin console
Soldat comes with a remote admin console that lets you run the same commands from outside the game. It runs over TCP on the same port as the game – that is, your Game Port.
Setting (classic, server.ini) |
Setting (OpenSoldat) | Purpose |
|---|---|---|
MaxAdminConnections |
net_maxadminconnections |
Maximum number of simultaneous admin connections |
| – | net_adminip |
IP address the admin port is bound to |
| – | net_rcon_limit / net_rcon_burst |
Rate limit for connection attempts per second |
Restrict admins
Locked mode prevents logged-in admins from using certain commands.
| Server version | How to enable | Effect |
|---|---|---|
| classic server | Launch parameter -lock 1 |
Admins can no longer use /loadcon, /password and /maxplayers |
| OpenSoldat | set sv_lockedmode 1 in configs/server.cfg |
Admins can no longer use /loadcon |
Important admin commands
| Command | Description |
|---|---|
/adminlog <password> |
Log in as admin |
/adm <PlayerName> |
Add a player to the admin list permanently |
/admip <IP address> |
Add an IP address to the admin list permanently |
/unadm <IP address> |
Remove an entry from the admin list |
/map <MapName> |
Switch to a specific map |
/nextmap |
Switch to the next map in the rotation |
/restart |
Restart the round |
/gamemode 0-6 |
Change the game mode |
/friendlyfire 0/1 |
Turn friendly fire off or on |
/respawntime <seconds> |
Set the respawn time |
/say <text> |
Send a message to all players |
/addbot <BotName> |
Add a bot |
/addbot<team ID> <BotName> |
Add a bot to a specific team, e.g. /addbot2 Terminator |
