Here's how to add yourself, or another player, as an admin on your Barotrauma server.
Adding Players As Admins
Before starting, you'll need the in-game username and Steam ID of every player you want to add. Change the STEAM_0 at the start to STEAM_1, for example STEAM_0:1:73037963 becomes STEAM_1:1:73037963.
Caution
Stop your server before editing this file. Barotrauma rewrites clientpermissions.xml when it shuts down, so any edits made while the server is running will be overwritten.
- 1
Log in to Bropanel and
Stopyour server. - 2
In the sidebar, go to
Filesand openData/clientpermissions.xml. - 3
Add a
<Client>entry for each player, settingnameto their username andaccountidto theirSTEAM_1ID. Add or remove<command>lines to control which console commands they can run, for example:<?xml version="1.0" encoding="utf-8"?> <ClientPermissions> <Client name="Pedrotski" accountid="STEAM_1:1:73037963" permissions="All"> <command name="kick" /> <command name="ban" /> <command name="godmode" /> </Client> <Client name="HurpTurp" accountid="STEAM_1:0:12345678" permissions="ConsoleCommands"> <command name="startgame" /> <command name="endgame" /> <command name="say" /> </Client> ... </ClientPermissions> - 4
Save the file and
Startyour server.
Note
The <command> lines are only read if the player has the ConsoleCommands permission, which permissions="All" includes. If you're writing your own permission list, make sure ConsoleCommands is part of it.
A SteamID64 like 76561198106341655 won't work. Barotrauma reads it as an Epic ID and adds EPIC_ in front.
Barotrauma Permissions List
The permissions attribute takes a comma-separated list of the values below, or All to grant every one of them.
| Permission | Description |
|---|---|
All | Grants every permission listed below. |
ManageRound | Start and end rounds. |
Kick | Kick players from the server. |
Ban | Ban players from the server. |
Unban | Lift bans on players. |
SelectSub | Choose the submarine and respawn shuttle. |
SelectMode | Choose the game mode. |
ManageCampaign | Manage the campaign, including the store and submarine upgrades. |
ConsoleCommands | Use the console commands granted by the <command> lines. |
ServerLog | View the server log. |
ManageSettings | Change the server settings from in-game. |
ManagePermissions | Grant and revoke other players' permissions. |
KarmaImmunity | Ignore the karma system. |
ManageMoney | Spend the crew's money. |
SellInventoryItems | Sell items held in character inventories. |
SellSubItems | Sell items belonging to the submarine. |
ManageMap | Choose the campaign's next destination. |
ManageHires | Hire and fire crew members. |
ManageBotTalents | Choose the talents that bots unlock. |
SpamImmunity | Bypass the chat spam filter. |
Tip
Instead of listing permissions yourself, you can replace the permissions attribute with the built-in preset like preset="Admin" or preset="Moderator" from Data/permissionpresets.xml. You can also create your own custom presets by editing Data/permissionpresets_player.xml.
Barotrauma Admin Commands
These are every console command you can grant with a <command> line. Most of them need cheats to be enabled with enablecheats first.
| Command | Description |
|---|---|
ambientlight | Sets the ambient light color of the level. |
autoitemplacerdebug | Toggles debug info for the automatic item placer. |
autorestart | Turns automatic restarts between rounds on or off. |
autorestartinterval | Sets the number of seconds between automatic restarts. |
autorestarttimer | Sets the current auto-restart countdown in seconds. |
ballastflora | Spawns a ballast flora in the submarine's ballast. |
ban | Bans a player by name. |
banaddress | Bans a player by IP address. |
banid | Bans a player by their client ID. |
botcount | Sets the number of bots in the crew. |
botspawnmode | Sets the bot spawn mode to Normal or Fill. |
calculatehashes | Recalculates the hashes of the selected content packages. |
campaigndestination | Sets the campaign's next destination. |
campaigninfo | Prints information about the current campaign. |
clientlist | Lists every connected client along with their client ID. |
control | Takes control of the specified character. |
debugai | Toggles AI debug drawing. |
debugdraw | Toggles the debug overlay. |
debugdrawlocalization | Highlights text that hasn't been localized. |
debugdrawlos | Toggles line-of-sight debug drawing. |
debugevent | Prints debug information about a specific event. |
debugjobassignment | Toggles debug logging for job assignment. |
debugwiring | Toggles wiring debug mode, letting you rewire anything. |
despawnnow | Immediately despawns the characters of disconnected players. |
devmode | Toggles developer mode. |
difficulty | Sets the difficulty of the current level. |
disablecrewai | Disables the AI of the crew's bots. |
disableenemyai | Disables the AI of monsters. |
dumpids | Prints a list of entity IDs to the console. |
dumptofile | Writes the console output to a text file. |
enablecheats | Enables cheat commands. Needed before most other commands work. |
enablecrewai | Re-enables the AI of the crew's bots. |
enableenemyai | Re-enables the AI of monsters. |
endgame | Ends the current round. |
entitydata | Prints network data about the targeted entity. |
eventmanager | Turns the random event manager on or off. |
exit | Shuts the server down. |
explosion | Creates an explosion at the cursor position. |
findentityids | Prints the IDs of every entity matching a name. |
fire | Starts a fire at the cursor position. |
fixhulls | Repairs all walls and hull damage. |
fixitems | Repairs every item and structure. |
followsub | Toggles whether the camera follows the submarine. |
freecamera | Detaches the camera from your character. |
freeze | Freezes your character in place. |
gamemode | Sets the game mode for the next round. |
give | Gives an item to a character's inventory. |
giveaffliction | Applies an affliction to a character. |
givecommandperm | Grants a player permission to use specific console commands. |
giveexperience | Gives experience points to a character. |
giveperm | Grants a permission to a player. |
giverank | Assigns a permission preset to a player. |
givetalent | Unlocks a talent for a character. |
godmode | Toggles god mode on your character. |
godmode_mainsub | Makes the main submarine invulnerable. |
growthdelay | Sets the growth delay of ballast flora. |
heal | Heals the specified character. |
healme | Heals your own character. |
help | Lists the available commands, or shows help for one of them. |
hidemonsters | Hides every monster in the level. |
itemassemblies | Lists the loaded item assemblies. |
items | Lists every item in the game. |
kick | Kicks a player by name. |
kickid | Kicks a player by their client ID. |
kill | Kills the specified character. |
killall | Kills every character in the level. |
killdisconnectedtimer | Sets how long a disconnected player's character survives. |
killmonsters | Kills every monster in the level. |
lighting | Toggles dynamic lighting. |
listcoroutines | Lists the coroutines that are currently running. |
listlocations | Lists the locations on the campaign map. |
listsuitabletreatments | Lists suitable treatments for a character's afflictions. |
listtasks | Lists the tasks that are currently running. |
lock | Locks the camera in place. |
lockx | Locks the camera's horizontal movement. |
locky | Locks the camera's vertical movement. |
los | Toggles line of sight. |
loslightingfreecam | Toggles line of sight, lighting and free camera at once. |
maxupgrades | Sets the maximum campaign upgrade level. |
mission | Sets the mission type for the next round. |
money | Adds money to the campaign bank. |
monstersignoreplayer | Makes monsters ignore a specific player. |
monstersignoresub | Makes monsters ignore the submarine. |
monstersrestoretargets | Restores monsters' normal targeting. |
monstertargetingrestrictions | Lists the monster targeting restrictions currently in place. |
msg | Sends a message that appears on every player's screen. |
mute | Mutes a player's voice chat. |
netstats | Toggles the networking statistics overlay. |
oxygen | Refills the oxygen in every hull. |
power | Adds power to the submarine's grid. |
ragdoll | Ragdolls the specified character. |
randomizeseed | Toggles level seed randomization between rounds. |
readycheck | Starts a ready check. |
resetkarma | Resets a player's karma to the default value. |
respawnnow | Triggers a respawn immediately. |
restart | Restarts the current round. |
revive | Revives a dead character. |
revokecommandperm | Removes a player's permission to use specific console commands. |
revokeperm | Removes a permission from a player. |
say | Sends a chat message as the server. |
seed | Sets the level seed for the next round. |
sendchatmessage | Sends a chat message as any player. |
servermsg | Sets the server's message of the day. |
servername | Changes the server's name. |
setcampaignmetadata | Sets a campaign metadata value. |
setclientcharacter | Assigns a character to a specific player. |
setdifficulty | Sets the difficulty of the current level. |
setkarma | Sets a player's karma value. |
setlocationreputation | Sets your reputation with the current location. |
setmaxplayers | Sets the maximum player count. |
setpassword | Sets the server password. |
setreputation | Sets your reputation with a faction. |
setsalary | Sets a player's campaign salary. |
setskill | Sets a character's skill level. |
showkarma | Shows every player's karma values. |
showmoney | Shows the campaign's current funds. |
showmonsters | Reveals monsters hidden with hidemonsters. |
showperm | Shows a player's current permissions. |
showreputation | Shows your reputation with every faction. |
showseed | Prints the current level seed. |
shuttle | Toggles the respawn shuttle. |
simulatedduplicateschance | Simulates duplicate network packets for testing. |
simulatedlatency | Simulates network latency for testing. |
simulatedloss | Simulates packet loss for testing. |
skipeventcooldown | Skips the cooldown before the next random event. |
spawn | Spawns a character at the given position. |
spawnitem | Spawns an item at the given position. |
spawnnpc | Spawns an NPC at the given position. |
startgame | Starts a new round. |
startitems | Sets the item set the crew starts a campaign with. |
startwhenclientsready | Toggles starting the round once enough players are ready. |
sub | Selects the submarine for the next round. |
tags | Lists the tags of the targeted entity. |
teleportcharacter | Teleports a character to the cursor position. |
teleportsub | Teleports the submarine to the cursor position or a location. |
toggleaitargets | Toggles AI target debug drawing. |
togglecampaignteleport | Lets you teleport around the campaign map by clicking. |
togglecharacternames | Toggles character name tags. |
togglehud | Toggles the entire HUD. |
toggleitemhighlights | Toggles item highlight outlines. |
togglekarma | Turns the karma system on or off. |
togglekarmatestmode | Logs karma changes without actually punishing players. |
toggleupperhud | Toggles the top bar of the HUD. |
togglevoicechatfilters | Toggles the radio and muffling filters on voice chat. |
traitorlist | Lists the current traitors and their objectives. |
triggerevent | Triggers a specific random event. |
triggertraitorevent | Triggers a specific traitor event. |
unban | Unbans a player by name. |
unbanaddress | Unbans an IP address. |
unlockmission | Unlocks a mission in the campaign. |
unlocktalents | Unlocks talents for a character. |
unmute | Unmutes a player's voice chat. |
verboselogging | Toggles detailed server logging. |
water | Lets you flood or drain hulls with the cursor. |
