Barotrauma Server Console Commands
Complete reference for Barotrauma server console commands — server management, player control, spawning, and more.
Console commands let admins manage the server, control players, and manipulate the game world. Press F3 in-game to open the console, or use the Console tab in the XGamingServer Panel.
📝 Note: Most commands require the
ConsoleCommandspermission or higher. Some commands requireAdminorGodrank. See Adding Admins to set up permissions.
Server & Round Management
| Command | Syntax | Description |
|---|---|---|
startgame | startgame | Start the current round |
endgame | endgame | End the current round |
restart | restart | Restart the server |
autorestart | autorestart [true/false] | Toggle auto-restart when empty |
difficulty | difficulty [0-100] | Change level difficulty mid-round |
gamemode | gamemode [mode] | Change game mode |
sub | sub [name] | Change the active submarine |
botcount | botcount [0-16] | Set number of AI bots |
botspawnmode | botspawnmode [Normal/Fill] | Set bot spawn behavior |
servermsg | servermsg [text] | Broadcast a message to all players |
Player Management
| Command | Syntax | Description |
|---|---|---|
clientlist | clientlist | List all connected players and their IDs |
kick | kick [name] | Kick a player |
kickid | kickid [client id] | Kick a player by client ID |
ban | ban [name] | Kick and ban a player |
banid | banid [client id] | Ban by client ID |
unban | unban [name] | Unban a player |
mute | mute [name] | Mute a player's voice chat |
unmute | unmute [name] | Unmute a player |
giverank | giverank [name] [Moderator/Admin/God] | Assign a permission rank |
giveperm | giveperm [name] [permission] | Grant a specific permission |
givecommandperm | givecommandperm [name] [command] | Allow a specific command |
revokeperm | revokeperm [name] | Remove all permissions |
Karma
| Command | Syntax | Description |
|---|---|---|
togglekarma | togglekarma | Toggle karma system on/off |
showkarma | showkarma | Show all players' karma values |
setkarma | setkarma [name] [0-100] | Set a player's karma |
resetkarma | resetkarma [name] | Reset a player's karma to 50 |
togglekarmatestmode | togglekarmatestmode | Enable/disable karma test mode |
traitorlist | traitorlist | List current traitor assignments |
Character & Health
| Command | Syntax | Description |
|---|---|---|
heal | heal [name] | Restore full health and remove afflictions |
revive | revive [name] | Revive a dead character |
kill | kill [name] | Instantly kill a character |
godmode | godmode [name] | Make a character invulnerable |
freeze | freeze [name] | Freeze a character in place |
teleportcharacter | teleportcharacter [name] | Teleport a character to your cursor |
giveaffliction | giveaffliction [name] [affliction] [strength] | Apply a status effect |
setclientcharacter | setclientcharacter [client] [character] | Assign a client to a character |
respawnnow | respawnnow | Force an immediate respawn wave |
freecamera | freecamera | Detach camera for spectator view |
Spawning
| Command | Syntax | Description |
|---|---|---|
spawn | spawn [creature/job] [near/inside/outside/cursor] [team] | Spawn a creature or bot character |
spawnitem | spawnitem [item id] [location] [amount] | Spawn items |
Common creature IDs: crawler, mudraptor, hammerhead, husk, charybdis, endworm
Common item IDs: healthkit, oxygenite, shotgun, morphine, weldingtool
Submarine & Environment
| Command | Syntax | Description |
|---|---|---|
fixhulls | fixhulls | Repair all hull damage instantly |
fixitems | fixitems | Restore all items to full condition |
oxygen | oxygen | Fill all rooms with oxygen |
power | power | Instantly power up the reactor |
water | water [hull name] [%] | Set water level in a specific hull section |
fire | fire [hull name] | Start a fire in a hull section |
explosion | explosion [range] [force] | Create an explosion at cursor |
killmonsters | killmonsters | Kill all monsters in the level |
teleportsub | teleportsub [end/cursor] | Teleport the submarine |
godmode_mainsub | godmode_mainsub | Make the submarine invulnerable |
Campaign
| Command | Syntax | Description |
|---|---|---|
campaigninfo | campaigninfo | Show current campaign state |
campaigndestination | campaigndestination [name] | Force set the next campaign destination |
money | money [amount] [character] | Give campaign money |
giveexperience | giveexperience [amount] [name] | Grant XP to a player |
setskill | setskill [skill/all] [max/level] [name] | Set a character's skill level |
givetalent | givetalent [talent] [name] | Grant a talent to a character |
Skill names: medical, weapons, piloting, electrical, mechanical
💡 Tip: Run
clientlistfirst to see the exact player names and IDs to use in other commands.
💡 Tip: Need help? Join our Discord for support.
Related Guides
How is this guide?
