Skip to content
/SLASHPLAY

Barotrauma console commands

The 91 settings and 66 commands server owners use, with defaults and examples to copy.

157 commands

  1. StartWhenClientsReady

    Starts the round once enough players in the lobby are ready. Off by default.

    Default False (Off)

    Rounds and modes

  2. clientpermissions.xml

    Lists the players with admin ranks or permissions on the server, one Client line each, by SteamID.

    Default Not listed

    Admin commands

  3. giverank

    Gives a player a rank, a ready set of permissions such as Moderator or Admin.

    Command

    Admin commands

  4. kick

    Kicks a player off the server by name. They can rejoin.

    Command

    Admin commands

  5. ban

    Kicks a player by name and bans them from the server.

    Command

    Admin commands

  6. startgame

    Starts a new round. start and startround do the same.

    Command

    Round commands

  7. endgame

    Ends the current round and returns everyone to the lobby. end and endround do the same.

    Command

    Round commands

  8. 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

  9. RespawnMode

    How dead players come back: MidRound, BetweenRounds or Permadeath.

    Default MidRound (Respawn during the round)

    Respawning

  10. TraitorProbability

    Chance of traitors in a round, from 0 to 1. 0, the default, means no traitors.

    Default 0

    Traitors and karma

  11. KarmaEnabled

    Turns on the karma system, which punishes griefing automatically.

    Default False (Off)

    Traitors and karma

  12. AllowFriendlyFire

    Lets players hurt each other.

    Default True (On)

    Gameplay rules

  13. BotCount

    How many bots join the crew. None by default.

    Default 0

    Rounds and modes

  14. spawnitem

    Spawns an item at your cursor, in an inventory, in the cargo, or at a random spot.

    Command

    Cheats and fixes

  15. enablecheats

    Turns on cheat commands for this session and turns off Steam achievements.

    Command

    Cheats and fixes

  16. AutoRestart

    Starts new rounds automatically after AutoRestartInterval seconds in the lobby.

    Default False (Off)

    Rounds and modes

  17. banaddress

    Bans an IP address or SteamID, even if that player isn't online. banip does the same.

    Command

    Admin commands

  18. banid

    Kicks and bans the player with the given client ID.

    Command

    Admin commands

  19. clientlist

    Lists everyone connected to the server, with their client IDs.

    Command

    Admin commands

  20. givecommandperm

    Lets a player use specific console commands.

    Command

    Admin commands

  21. giveperm

    Grants a player one permission, such as Kick, Ban or ManageSettings.

    Command

    Admin commands

  22. kickid

    Kicks the player with the given client ID. clientlist shows the IDs.

    Command

    Admin commands

  23. msg

    Sends a chat message with no sender name on it.

    Command

    Admin commands

  24. mute

    Stops a player speaking in voice chat.

    Command

    Admin commands

  25. resetkarma

    Resets a player's karma to 100.

    Command

    Admin commands

  26. revokecommandperm

    Takes specific console commands off a player's list.

    Command

    Admin commands

  27. revokeperm

    Takes a permission away from a player. Use All to remove every permission.

    Command

    Admin commands

  28. say

    Sends a chat message to everyone on the server.

    Command

    Admin commands

  29. setkarma

    Sets a player's karma to a value from 0 to 100.

    Command

    Admin commands

  30. showkarma

    Shows the current karma of every player.

    Command

    Admin commands

  31. showperm

    Shows a player's permissions and permitted console commands.

    Command

    Admin commands

  32. togglekarma

    Turns the karma system on or off.

    Command

    Admin commands

  33. traitorlist

    Lists the traitors in the current round and their objectives.

    Command

    Admin commands

  34. unban

    Lifts the ban on a player, by the name they were banned under.

    Command

    Admin commands

  35. unbanaddress

    Lifts a ban on an IP address or SteamID.

    Command

    Admin commands

  36. unmute

    Lets a muted player use voice chat again.

    Command

    Admin commands

  37. autorestart

    Turns automatic round starts on or off.

    Command

    Round commands

  38. autorestartinterval

    Sets how many seconds the server waits between rounds before starting the next one. 0 turns auto restart off.

    Command

    Round commands

  39. autorestarttimer

    Sets the current auto restart countdown to the given number of seconds.

    Command

    Round commands

  40. botcount

    Sets how many bots join the crew.

    Command

    Round commands

  41. botspawnmode

    Sets how bots spawn: normal (a fixed number) or fill (fill the empty crew slots).

    Command

    Round commands

  42. campaigndestination

    Sets the location the campaign heads to next, by its index.

    Command

    Round commands

  43. campaigninfo

    Shows the state of the running campaign. campaignstatus does the same.

    Command

    Round commands

  44. difficulty

    Sets the level difficulty in the lobby, from 0 to 100.

    Command

    Round commands

  45. gamemode

    Picks the game mode for the next round, by name or number.

    Command

    Round commands

  46. killdisconnectedtimer

    Sets how many seconds a disconnected player's character stays before it's killed.

    Command

    Round commands

  47. mission

    Picks the mission type for the next round.

    Command

    Round commands

  48. randomizeseed

    Turns random level seeds on or off.

    Command

    Round commands

  49. readycheck

    Starts a ready check: everyone in the lobby is asked if they're ready.

    Command

    Round commands

  50. respawnnow

    Starts a respawn right away for anyone waiting to respawn.

    Command

    Round commands

  51. seed

    Sets the level seed for the next round. levelseed does the same.

    Command

    Round commands

  52. setsalary

    Sets the campaign salary of a character, or the default for everyone, as a percentage.

    Command

    Round commands

  53. shuttle

    Picks the respawn shuttle for the next round.

    Command

    Round commands

  54. startwhenclientsready

    Turns on or off starting the round once enough players are ready.

    Command

    Round commands

  55. sub

    Picks the submarine for the next round. submarine does the same.

    Command

    Round commands

  56. exit

    Shuts the server application down. quit and close do the same.

    Command

    Server commands

  57. restart

    Closes the server and starts it again. reset does the same.

    Command

    Server commands

  58. servermsg

    Changes the message shown in the server lobby.

    Command

    Server commands

  59. servername

    Changes the server's name.

    Command

    Server commands

  60. setmaxplayers

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

    Command

    Server commands

  61. setpassword

    Changes the server's join password. setserverpassword and password do the same.

    Command

    Server commands

  62. fixhulls

    Fixes all walls of the submarine. fixwalls does the same.

    Command

    Cheats and fixes

  63. fixitems

    Repairs every item to full condition.

    Command

    Cheats and fixes

  64. give

    Spawns an item in your own character's inventory. giveitem does the same.

    Command

    Cheats and fixes

  65. godmode

    Makes a character invulnerable, or removes it again.

    Command

    Cheats and fixes

  66. heal

    Heals a character to full. Add all to also cure poisons, addictions and the like.

    Command

    Cheats and fixes

  67. kill

    Kills a character right away.

    Command

    Cheats and fixes

  68. killmonsters

    Kills every AI-controlled enemy in the level.

    Command

    Cheats and fixes

  69. money

    Gives the crew money during a campaign.

    Command

    Cheats and fixes

  70. oxygen

    Fills every room with oxygen. air does the same.

    Command

    Cheats and fixes

  71. power

    Powers up the submarine's nuclear reactor right away.

    Command

    Cheats and fixes

  72. revive

    Brings a character back from the dead.

    Command

    Cheats and fixes

  73. setskill

    Sets a character's skill level, one skill or all of them.

    Command

    Cheats and fixes

  74. spawn

    Spawns a creature, or a character with a job, near, inside or outside the submarine or at the cursor.

    Command

    Cheats and fixes

  75. teleportcharacter

    Teleports a character to a location or to your cursor. teleport does the same.

    Command

    Cheats and fixes

  76. AllowFileTransfers

    Lets the server send missing submarine files to players who join.

    Default True (Allowed)

    Server settings

  77. AllowModDownloads

    Lets players download missing mods from the server when they join.

    Default True (Allowed)

    Server settings

  78. EnableDoSProtection

    Kicks players who send more packets than MaxPacketAmount allows. On by default.

    Default True (On)

    Server settings

  79. enableupnp

    Lets the server try to open its ports on your router with UPnP.

    Default false (Don't)

    Server settings

  80. IsPublic

    Lists the server in Barotrauma's server browser. A dedicated server is private unless this is True.

    Default False (Not listed)

    Server settings

  81. Language

    The server's language, shown in the server list.

    Default Not listed

    Server settings

  82. LinesPerLogFile

    How many lines go in each server log file. The default is 800.

    Default 800

    Server settings

  83. MaxLagCompensation

    How far back, in milliseconds, the server checks shots for hits to make up for lag. Up to 500.

    Default 150

    Server settings

  84. MaxPacketAmount

    How many packets a player may send before DoS protection treats it as spam. The default is 4000.

    Default 4000

    Server settings

  85. password

    The join password. Empty, the default, means anyone can join.

    Default (empty)

    Server settings

  86. PlayStyle

    The play style shown in the server list: Serious, Casual, Roleplay, Rampage or SomethingDifferent.

    Default Casual

    Server settings

  87. port

    The UDP port players connect to. The default is 27015.

    Default 27015

    Server settings

  88. queryport

    The Steam query port the server list uses. The default is 27016.

    Default 27016

    Server settings

  89. RequireAuthentication

    Requires players to be authenticated by Steam or Epic. On by default.

    Default True (Authenticate players)

    Server settings

  90. SaveServerLogs

    Saves the server log to the ServerLogs folder when the server shuts down.

    Default True (Save logs)

    Server settings

  91. ServerMessageText

    The message shown in the lobby and the server list, up to 2000 characters.

    Default (empty)

    Server settings

  92. ServerName

    The server's name in the server list and the lobby, up to 60 characters.

    Default Server

    Server settings

  93. TickRate

    Network updates per second. The default is 20.

    Default 20

    Server settings

  94. AutoRestartInterval

    Seconds in the lobby before an automatic round start. The default is 60.

    Default 60

    Rounds and modes

  95. Biome

    The biome rounds take place in, outside campaigns. Random by default.

    Default Random

    Rounds and modes

  96. BotSpawnMode

    Normal spawns BotCount bots; Fill fills every empty crew slot with a bot.

    Default Normal (BotCount bots)

    Rounds and modes

  97. DisableBotConversations

    Stops bots chatting flavor lines in chat. Their callouts, like cries for help, stay.

    Default False (Bots chat)

    Rounds and modes

  98. GameModeIdentifier

    The game mode the server starts in: sandbox, mission, pvp or multiplayercampaign.

    Default sandbox

    Rounds and modes

  99. MaxBotCount

    The most bots a round can have. The default is 16.

    Default 16

    Rounds and modes

  100. MissionTypes

    Which mission types the server picks from, comma separated. All by default.

    Default All

    Rounds and modes

  101. ModeSelectionMode

    How the next game mode is chosen: Manual, Random or Vote.

    Default Manual (Picked by a player with permission)

    Rounds and modes

  102. PvpAutoBalanceThreshold

    PvP: how many extra players one team needs before teams are auto balanced. 0 turns it off.

    Default 1

    Rounds and modes

  103. PvPSpawnMonsters

    PvP: lets monsters spawn in the level.

    Default False (No monsters)

    Rounds and modes

  104. PvPSpawnWrecks

    PvP: lets wrecks spawn in the level.

    Default True (Wrecks spawn)

    Rounds and modes

  105. PvpTeamSelectionMode

    PvP: PlayerPreference balances teams from players' wishes; PlayerChoice lets players pick.

    Default PlayerPreference (Balanced from preferences)

    Rounds and modes

  106. RandomizeSeed

    Uses a new level seed every round. On by default.

    Default True (New seed each round)

    Rounds and modes

  107. SelectedLevelDifficulty

    Level difficulty from 0 to 100 for sandbox and mission rounds.

    Default 0

    Rounds and modes

  108. SelectedOutpostName

    PvP: the outpost used for outpost deathmatch. Random by default.

    Default Random

    Rounds and modes

  109. SelectedShuttle

    The respawn shuttle selected in the lobby. Saved here when the server shuts down.

    Default (empty)

    Rounds and modes

  110. SelectedSubmarine

    The submarine selected in the lobby. The server saves the current choice here when it shuts down.

    Default (empty)

    Rounds and modes

  111. 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

  112. SubSelectionMode

    How the next submarine is chosen: Manual, Random or Vote.

    Default Manual (Picked by a player with permission)

    Rounds and modes

  113. WinScorePvP

    PvP: the score a team needs to win a scored mission such as deathmatch. The default is 200.

    Default 200

    Rounds and modes

  114. AllowBotTakeoverOnPermadeath

    Permadeath: lets players take over a bot instead of buying a new character.

    Default True (Allowed)

    Respawning

  115. DespawnDisconnectedPermadeathTime

    Permadeath: seconds a disconnected player's character stays before it's despawned. The default is 10.

    Default 10

    Respawning

  116. IronmanMode

    Permadeath: a player whose character dies can only spectate for the rest of that game.

    Default False (Off)

    Respawning

  117. KillDisconnectedTime

    Seconds a disconnected player's character stays in the world before it dies. The default is 300.

    Default 300

    Respawning

  118. MaxTransportTime

    Seconds the respawn shuttle has to reach the submarine before it heads back. The default is 180.

    Default 180

    Respawning

  119. MinRespawnRatio

    Share of players who must be dead before the respawn timer starts. The default is 0.2.

    Default 0.2

    Respawning

  120. ReplaceCostPercentage

    Permadeath: cost of hiring a replacement for a dead character, in percent of the normal price.

    Default 100

    Respawning

  121. RespawnInterval

    Seconds between respawn waves. The default is 30.

    Default 30

    Respawning

  122. SkillLossPercentageOnDeath

    How much skills drop toward the job's starting levels when a character dies, in percent.

    Default 20

    Respawning

  123. SkillLossPercentageOnImmediateRespawn

    Extra skill loss, in percent, when a player chooses to respawn in the middle of the round.

    Default 10

    Respawning

  124. UseRespawnShuttle

    Respawned players arrive in a shuttle instead of appearing inside the submarine.

    Default True (Shuttle)

    Respawning

  125. AllowAFK

    Lets players mark themselves AFK so they aren't kicked for being idle.

    Default True (AFK allowed)

    Players and voting

  126. AllowEndVoting

    Lets players vote to end the round.

    Default True (Allowed)

    Players and voting

  127. AllowSpectating

    Lets dead players spectate. With it off they go back to the lobby.

    Default True (Allowed)

    Players and voting

  128. AllowVoteKick

    Lets players vote to kick someone.

    Default True (Allowed)

    Players and voting

  129. AutoBanTime

    Seconds a vote-kicked player is banned for. The default is 3600, one hour.

    Default 3600

    Players and voting

  130. BanAfterWrongPassword

    Bans a player after too many wrong password tries.

    Default True (Ban)

    Players and voting

  131. DisallowKickVoteTime

    Seconds a player can't start another kick vote after one. The default is 120.

    Default 120

    Players and voting

  132. EndVoteRequiredRatio

    Share of votes needed to end the round. The default is 0.6.

    Default 0.6

    Players and voting

  133. KickAFKTime

    Seconds of no input, while controlling a living character, before a player is kicked. The default is 600.

    Default 600

    Players and voting

  134. KickVoteRequiredRatio

    Share of votes needed to kick a player. The default is 0.6.

    Default 0.6

    Players and voting

  135. 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

  136. MaxPasswordRetriesBeforeBan

    Wrong password tries allowed before a ban. The default is 3.

    Default 3

    Players and voting

  137. VoiceChatEnabled

    Lets players use voice chat.

    Default True (On)

    Players and voting

  138. 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

  139. VoteTimeout

    Seconds a vote stays open. The default is 30.

    Default 30

    Players and voting

  140. AllowDisguises

    Lets players disguise themselves with someone else's ID card.

    Default True (Allowed)

    Gameplay rules

  141. AllowDragAndDropGive

    Lets players give items by dragging them onto another character.

    Default True (Allowed)

    Gameplay rules

  142. AllowImmediateItemDelivery

    Lets bought items go straight into a player's inventory.

    Default True (Allowed)

    Gameplay rules

  143. AllowLinkingWifiToChat

    Lets wifi components send signals to the chat.

    Default False (Not allowed)

    Gameplay rules

  144. AllowRemoteCampaignInteractions

    Lets players use NPC services such as stores from a distance.

    Default False (Not allowed)

    Gameplay rules

  145. AllowRewiring

    Lets players rewire the submarine.

    Default True (Allowed)

    Gameplay rules

  146. DestructibleOutposts

    Lets outposts be damaged and destroyed.

    Default False (Not destructible)

    Gameplay rules

  147. KillableNPCs

    Lets outpost NPCs be killed.

    Default True (Killable)

    Gameplay rules

  148. LockAllDefaultWires

    Locks the submarine's original wiring so it can't be changed.

    Default False (Not locked)

    Gameplay rules

  149. LootedMoneyDestination

    Where looted money goes in a campaign: the shared Bank or the player's Wallet.

    Default Bank (Shared bank)

    Gameplay rules

  150. 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

  151. MaximumMoneyTransferRequest

    The most money a player can request in one transfer. The default is 999999.

    Default 999999

    Gameplay rules

  152. NewCampaignDefaultSalary

    The default salary for new campaign characters, in percent.

    Default 0

    Gameplay rules

  153. ShowEnemyHealthBars

    Which enemy health bars show: ShowAll, BossHealthBarsOnly or HideAll.

    Default ShowAll (All)

    Gameplay rules

  154. KarmaPreset

    The karma rules: default, strict or custom.

    Default default

    Traitors and karma

  155. MinPercentageOfPlayersForTraitorAccusation

    Percent of players who must accuse someone for the accusation to count at the end of a round.

    Default 50

    Traitors and karma

  156. TraitorDangerLevel

    How dangerous traitor tasks can be, from 1 (harmless) to 3 (deadly).

    Default 1

    Traitors and karma

  157. TraitorsMinPlayerCount

    The fewest players needed before a traitor can be picked.

    Default 1

    Traitors and karma

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.