How to set a password on a Barotrauma server
On SLASHPLAY, turn on Password protection in the Join password section of the server page and restart. SLASHPLAY writes it to password in serversettings.xml.
password
The join password. Empty, the default, means anyone can join.
password="<password>" Examples
password="hunter2" Players need hunter2 to join.
Arguments
passwordRequired- The join password.
What it does
Players are asked for it when they join, from the list or by address.
Good to know
- An attribute of the
serversettingselement inserversettings.xml, in the server's root folder. Edit it in Files, then restart the server. - SLASHPLAY manages this one: set it with Password protection in the Join password section of the server page. SLASHPLAY writes it into the file on every start.
- Barotrauma writes its settings back to this file when it shuts down, so an edit made while it runs may be overwritten. If a change doesn't stick, stop the server, click Start the server without launching the game on the Files tab, edit, then click Start the game.
Run it on your server
The Console tab can't send commands to Barotrauma: a player with permission types them in the game's console (F3), after being made admin in Data/clientpermissions.xml. Settings go in serversettings.xml on the Files tab and apply at the next restart. New to this? Start a Barotrauma server first.
Your own
Barotrauma server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.