Barotrauma console commands
The 91 settings and 66 commands server owners use, with defaults and examples to copy.
157 commands
- StartWhenClientsReady
Starts the round once enough players in the lobby are ready. Off by default.
Default False (Off)
Rounds and modes
- clientpermissions.xml
Lists the players with admin ranks or permissions on the server, one Client line each, by SteamID.
Default Not listed
Admin commands
- giverank
Gives a player a rank, a ready set of permissions such as Moderator or Admin.
Command
Admin commands
- kick
Kicks a player off the server by name. They can rejoin.
Command
Admin commands
- ban
Kicks a player by name and bans them from the server.
Command
Admin commands
- startgame
Starts a new round.
startandstartrounddo the same.Command
Round commands
- endgame
Ends the current round and returns everyone to the lobby.
endandendrounddo the same.Command
Round commands
- MaxPlayers
The most players who can be on the server at once, 1 to 16. A dedicated server uses 10 when it's not set.
Default 10
Server settings
- RespawnMode
How dead players come back: MidRound, BetweenRounds or Permadeath.
Default MidRound (Respawn during the round)
Respawning
- TraitorProbability
Chance of traitors in a round, from 0 to 1. 0, the default, means no traitors.
Default 0
Traitors and karma
- KarmaEnabled
Turns on the karma system, which punishes griefing automatically.
Default False (Off)
Traitors and karma
- AllowFriendlyFire
Lets players hurt each other.
Default True (On)
Gameplay rules
- BotCount
How many bots join the crew. None by default.
Default 0
Rounds and modes
- spawnitem
Spawns an item at your cursor, in an inventory, in the cargo, or at a random spot.
Command
Cheats and fixes
- enablecheats
Turns on cheat commands for this session and turns off Steam achievements.
Command
Cheats and fixes
- AutoRestart
Starts new rounds automatically after
AutoRestartIntervalseconds in the lobby.Default False (Off)
Rounds and modes
- banaddress
Bans an IP address or SteamID, even if that player isn't online.
banipdoes the same.Command
Admin commands
- banid
Kicks and bans the player with the given client ID.
Command
Admin commands
- clientlist
Lists everyone connected to the server, with their client IDs.
Command
Admin commands
- givecommandperm
Lets a player use specific console commands.
Command
Admin commands
- giveperm
Grants a player one permission, such as Kick, Ban or ManageSettings.
Command
Admin commands
- kickid
Kicks the player with the given client ID.
clientlistshows the IDs.Command
Admin commands
- msg
Sends a chat message with no sender name on it.
Command
Admin commands
- mute
Stops a player speaking in voice chat.
Command
Admin commands
- resetkarma
Resets a player's karma to 100.
Command
Admin commands
- revokecommandperm
Takes specific console commands off a player's list.
Command
Admin commands
- revokeperm
Takes a permission away from a player. Use All to remove every permission.
Command
Admin commands
- say
Sends a chat message to everyone on the server.
Command
Admin commands
- setkarma
Sets a player's karma to a value from 0 to 100.
Command
Admin commands
- showkarma
Shows the current karma of every player.
Command
Admin commands
- showperm
Shows a player's permissions and permitted console commands.
Command
Admin commands
- togglekarma
Turns the karma system on or off.
Command
Admin commands
- traitorlist
Lists the traitors in the current round and their objectives.
Command
Admin commands
- unban
Lifts the ban on a player, by the name they were banned under.
Command
Admin commands
- unbanaddress
Lifts a ban on an IP address or SteamID.
Command
Admin commands
- unmute
Lets a muted player use voice chat again.
Command
Admin commands
- autorestart
Turns automatic round starts on or off.
Command
Round commands
- autorestartinterval
Sets how many seconds the server waits between rounds before starting the next one. 0 turns auto restart off.
Command
Round commands
- autorestarttimer
Sets the current auto restart countdown to the given number of seconds.
Command
Round commands
- botcount
Sets how many bots join the crew.
Command
Round commands
- botspawnmode
Sets how bots spawn: normal (a fixed number) or fill (fill the empty crew slots).
Command
Round commands
- campaigndestination
Sets the location the campaign heads to next, by its index.
Command
Round commands
- campaigninfo
Shows the state of the running campaign.
campaignstatusdoes the same.Command
Round commands
- difficulty
Sets the level difficulty in the lobby, from 0 to 100.
Command
Round commands
- gamemode
Picks the game mode for the next round, by name or number.
Command
Round commands
- killdisconnectedtimer
Sets how many seconds a disconnected player's character stays before it's killed.
Command
Round commands
- mission
Picks the mission type for the next round.
Command
Round commands
- randomizeseed
Turns random level seeds on or off.
Command
Round commands
- readycheck
Starts a ready check: everyone in the lobby is asked if they're ready.
Command
Round commands
- respawnnow
Starts a respawn right away for anyone waiting to respawn.
Command
Round commands
- seed
Sets the level seed for the next round.
levelseeddoes the same.Command
Round commands
- setsalary
Sets the campaign salary of a character, or the default for everyone, as a percentage.
Command
Round commands
- shuttle
Picks the respawn shuttle for the next round.
Command
Round commands
- startwhenclientsready
Turns on or off starting the round once enough players are ready.
Command
Round commands
- sub
Picks the submarine for the next round.
submarinedoes the same.Command
Round commands
- exit
Shuts the server application down.
quitandclosedo the same.Command
Server commands
- restart
Closes the server and starts it again.
resetdoes the same.Command
Server commands
- servermsg
Changes the message shown in the server lobby.
Command
Server commands
- servername
Changes the server's name.
Command
Server commands
- setmaxplayers
Sets the server's player limit.
maxplayersdoes the same.Command
Server commands
- setpassword
Changes the server's join password.
setserverpasswordandpassworddo the same.Command
Server commands
- fixhulls
Fixes all walls of the submarine.
fixwallsdoes the same.Command
Cheats and fixes
- fixitems
Repairs every item to full condition.
Command
Cheats and fixes
- give
Spawns an item in your own character's inventory.
giveitemdoes the same.Command
Cheats and fixes
- godmode
Makes a character invulnerable, or removes it again.
Command
Cheats and fixes
- heal
Heals a character to full. Add all to also cure poisons, addictions and the like.
Command
Cheats and fixes
- kill
Kills a character right away.
Command
Cheats and fixes
- killmonsters
Kills every AI-controlled enemy in the level.
Command
Cheats and fixes
- money
Gives the crew money during a campaign.
Command
Cheats and fixes
- oxygen
Fills every room with oxygen.
airdoes the same.Command
Cheats and fixes
- power
Powers up the submarine's nuclear reactor right away.
Command
Cheats and fixes
- revive
Brings a character back from the dead.
Command
Cheats and fixes
- setskill
Sets a character's skill level, one skill or all of them.
Command
Cheats and fixes
- spawn
Spawns a creature, or a character with a job, near, inside or outside the submarine or at the cursor.
Command
Cheats and fixes
- teleportcharacter
Teleports a character to a location or to your cursor.
teleportdoes the same.Command
Cheats and fixes
- AllowFileTransfers
Lets the server send missing submarine files to players who join.
Default True (Allowed)
Server settings
- AllowModDownloads
Lets players download missing mods from the server when they join.
Default True (Allowed)
Server settings
- EnableDoSProtection
Kicks players who send more packets than
MaxPacketAmountallows. On by default.Default True (On)
Server settings
- enableupnp
Lets the server try to open its ports on your router with UPnP.
Default false (Don't)
Server settings
- IsPublic
Lists the server in Barotrauma's server browser. A dedicated server is private unless this is True.
Default False (Not listed)
Server settings
- Language
The server's language, shown in the server list.
Default Not listed
Server settings
- LinesPerLogFile
How many lines go in each server log file. The default is 800.
Default 800
Server settings
- MaxLagCompensation
How far back, in milliseconds, the server checks shots for hits to make up for lag. Up to 500.
Default 150
Server settings
- MaxPacketAmount
How many packets a player may send before DoS protection treats it as spam. The default is 4000.
Default 4000
Server settings
- password
The join password. Empty, the default, means anyone can join.
Default (empty)
Server settings
- PlayStyle
The play style shown in the server list: Serious, Casual, Roleplay, Rampage or SomethingDifferent.
Default Casual
Server settings
- port
The UDP port players connect to. The default is 27015.
Default 27015
Server settings
- queryport
The Steam query port the server list uses. The default is 27016.
Default 27016
Server settings
- RequireAuthentication
Requires players to be authenticated by Steam or Epic. On by default.
Default True (Authenticate players)
Server settings
- SaveServerLogs
Saves the server log to the ServerLogs folder when the server shuts down.
Default True (Save logs)
Server settings
- ServerMessageText
The message shown in the lobby and the server list, up to 2000 characters.
Default (empty)
Server settings
- ServerName
The server's name in the server list and the lobby, up to 60 characters.
Default Server
Server settings
- TickRate
Network updates per second. The default is 20.
Default 20
Server settings
- AutoRestartInterval
Seconds in the lobby before an automatic round start. The default is 60.
Default 60
Rounds and modes
- Biome
The biome rounds take place in, outside campaigns. Random by default.
Default Random
Rounds and modes
- BotSpawnMode
Normal spawns
BotCountbots; Fill fills every empty crew slot with a bot.Default Normal (BotCount bots)
Rounds and modes
- DisableBotConversations
Stops bots chatting flavor lines in chat. Their callouts, like cries for help, stay.
Default False (Bots chat)
Rounds and modes
- GameModeIdentifier
The game mode the server starts in: sandbox, mission, pvp or multiplayercampaign.
Default sandbox
Rounds and modes
- MaxBotCount
The most bots a round can have. The default is 16.
Default 16
Rounds and modes
- MissionTypes
Which mission types the server picks from, comma separated. All by default.
Default All
Rounds and modes
- ModeSelectionMode
How the next game mode is chosen: Manual, Random or Vote.
Default Manual (Picked by a player with permission)
Rounds and modes
- PvpAutoBalanceThreshold
PvP: how many extra players one team needs before teams are auto balanced. 0 turns it off.
Default 1
Rounds and modes
- PvPSpawnMonsters
PvP: lets monsters spawn in the level.
Default False (No monsters)
Rounds and modes
- PvPSpawnWrecks
PvP: lets wrecks spawn in the level.
Default True (Wrecks spawn)
Rounds and modes
- PvpTeamSelectionMode
PvP: PlayerPreference balances teams from players' wishes; PlayerChoice lets players pick.
Default PlayerPreference (Balanced from preferences)
Rounds and modes
- RandomizeSeed
Uses a new level seed every round. On by default.
Default True (New seed each round)
Rounds and modes
- SelectedLevelDifficulty
Level difficulty from 0 to 100 for sandbox and mission rounds.
Default 0
Rounds and modes
- SelectedOutpostName
PvP: the outpost used for outpost deathmatch. Random by default.
Default Random
Rounds and modes
- SelectedShuttle
The respawn shuttle selected in the lobby. Saved here when the server shuts down.
Default (empty)
Rounds and modes
- SelectedSubmarine
The submarine selected in the lobby. The server saves the current choice here when it shuts down.
Default (empty)
Rounds and modes
- StartWhenClientsReadyRatio
Share of players who must be ready to start a round, from 0 to 1. The default is 0.8.
Default 0.8
Rounds and modes
- SubSelectionMode
How the next submarine is chosen: Manual, Random or Vote.
Default Manual (Picked by a player with permission)
Rounds and modes
- WinScorePvP
PvP: the score a team needs to win a scored mission such as deathmatch. The default is 200.
Default 200
Rounds and modes
- AllowBotTakeoverOnPermadeath
Permadeath: lets players take over a bot instead of buying a new character.
Default True (Allowed)
Respawning
- DespawnDisconnectedPermadeathTime
Permadeath: seconds a disconnected player's character stays before it's despawned. The default is 10.
Default 10
Respawning
- IronmanMode
Permadeath: a player whose character dies can only spectate for the rest of that game.
Default False (Off)
Respawning
- KillDisconnectedTime
Seconds a disconnected player's character stays in the world before it dies. The default is 300.
Default 300
Respawning
- MaxTransportTime
Seconds the respawn shuttle has to reach the submarine before it heads back. The default is 180.
Default 180
Respawning
- MinRespawnRatio
Share of players who must be dead before the respawn timer starts. The default is 0.2.
Default 0.2
Respawning
- ReplaceCostPercentage
Permadeath: cost of hiring a replacement for a dead character, in percent of the normal price.
Default 100
Respawning
- RespawnInterval
Seconds between respawn waves. The default is 30.
Default 30
Respawning
- SkillLossPercentageOnDeath
How much skills drop toward the job's starting levels when a character dies, in percent.
Default 20
Respawning
- SkillLossPercentageOnImmediateRespawn
Extra skill loss, in percent, when a player chooses to respawn in the middle of the round.
Default 10
Respawning
- UseRespawnShuttle
Respawned players arrive in a shuttle instead of appearing inside the submarine.
Default True (Shuttle)
Respawning
- AllowAFK
Lets players mark themselves AFK so they aren't kicked for being idle.
Default True (AFK allowed)
Players and voting
- AllowEndVoting
Lets players vote to end the round.
Default True (Allowed)
Players and voting
- AllowSpectating
Lets dead players spectate. With it off they go back to the lobby.
Default True (Allowed)
Players and voting
- AllowVoteKick
Lets players vote to kick someone.
Default True (Allowed)
Players and voting
- AutoBanTime
Seconds a vote-kicked player is banned for. The default is 3600, one hour.
Default 3600
Players and voting
- BanAfterWrongPassword
Bans a player after too many wrong password tries.
Default True (Ban)
Players and voting
- DisallowKickVoteTime
Seconds a player can't start another kick vote after one. The default is 120.
Default 120
Players and voting
- EndVoteRequiredRatio
Share of votes needed to end the round. The default is 0.6.
Default 0.6
Players and voting
- KickAFKTime
Seconds of no input, while controlling a living character, before a player is kicked. The default is 600.
Default 600
Players and voting
- KickVoteRequiredRatio
Share of votes needed to kick a player. The default is 0.6.
Default 0.6
Players and voting
- MaxAutoBanTime
The longest automatic ban that can be set in the lobby, in seconds. The default is 86400, one day.
Default 86400
Players and voting
- MaxPasswordRetriesBeforeBan
Wrong password tries allowed before a ban. The default is 3.
Default 3
Players and voting
- VoiceChatEnabled
Lets players use voice chat.
Default True (On)
Players and voting
- VoteRequiredRatio
Share of votes needed for other votes, such as picking a sub or mode. The default is 0.6.
Default 0.6
Players and voting
- VoteTimeout
Seconds a vote stays open. The default is 30.
Default 30
Players and voting
- AllowDisguises
Lets players disguise themselves with someone else's ID card.
Default True (Allowed)
Gameplay rules
- AllowDragAndDropGive
Lets players give items by dragging them onto another character.
Default True (Allowed)
Gameplay rules
- AllowImmediateItemDelivery
Lets bought items go straight into a player's inventory.
Default True (Allowed)
Gameplay rules
- AllowLinkingWifiToChat
Lets wifi components send signals to the chat.
Default False (Not allowed)
Gameplay rules
- AllowRemoteCampaignInteractions
Lets players use NPC services such as stores from a distance.
Default False (Not allowed)
Gameplay rules
- AllowRewiring
Lets players rewire the submarine.
Default True (Allowed)
Gameplay rules
- DestructibleOutposts
Lets outposts be damaged and destroyed.
Default False (Not destructible)
Gameplay rules
- KillableNPCs
Lets outpost NPCs be killed.
Default True (Killable)
Gameplay rules
- LockAllDefaultWires
Locks the submarine's original wiring so it can't be changed.
Default False (Not locked)
Gameplay rules
- LootedMoneyDestination
Where looted money goes in a campaign: the shared Bank or the player's Wallet.
Default Bank (Shared bank)
Gameplay rules
- LosMode
Line of sight: Transparent shows a dim view through walls, Opaque blacks it out, None shows everything.
Default Transparent (Dim view through walls)
Gameplay rules
- MaximumMoneyTransferRequest
The most money a player can request in one transfer. The default is 999999.
Default 999999
Gameplay rules
- NewCampaignDefaultSalary
The default salary for new campaign characters, in percent.
Default 0
Gameplay rules
- ShowEnemyHealthBars
Which enemy health bars show: ShowAll, BossHealthBarsOnly or HideAll.
Default ShowAll (All)
Gameplay rules
- KarmaPreset
The karma rules: default, strict or custom.
Default default
Traitors and karma
- MinPercentageOfPlayersForTraitorAccusation
Percent of players who must accuse someone for the accusation to count at the end of a round.
Default 50
Traitors and karma
- TraitorDangerLevel
How dangerous traitor tasks can be, from 1 (harmless) to 3 (deadly).
Default 1
Traitors and karma
- TraitorsMinPlayerCount
The fewest players needed before a traitor can be picked.
Default 1
Traitors and karma
Nothing matches.
Try part of the name, like freeze or money, or a word from what it does.
Questions
How do I run Barotrauma commands on my 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.
How do I keep a setting after a restart?
The server reads its settings from serversettings.xml when it starts. Change them there, in the Files tab of the server page, then restart the server.
Where does this list come from?
SLASHPLAY wrote it from the dedicated server's own console help and serversettings.xml defaults (DedicatedServer.dll and FakeFishGames' published source), the shipped permissionpresets.xml, cross-checked with the official Barotrauma wiki: the settings and commands server owners use, with the game's own defaults.
Try them on
your own server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.