Skip to content
/SLASHPLAY

How to change the max players on a Barotrauma server

In the F3 console, type setmaxplayers 12, or set MaxPlayers="12" in serversettings.xml and restart.

setmaxplayers

Sets the server's player limit. maxplayers does the same.

setmaxplayers <players>

Examples

setmaxplayers 12

Room for 12 players.

Arguments

playersRequired
Player limit, 1 to 16.

What it does

Barotrauma allows up to 16 players.

Good to know

  • Type it in Barotrauma's console (F3) while connected to the server. You need the ConsoleCommands permission and setmaxplayers on your command list. The Admin rank doesn't include it: add a <command name="setmaxplayers"/> line under your entry in Data/clientpermissions.xml, or have someone run givecommandperm. The server page's Console tab can't send commands to Barotrauma.

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.