Barotrauma Admin Commands: Difference between revisions
Jump to navigation
Jump to search
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description |
[wiki:wiki-operator] Fixes from the review of the rewording: claims, example addresses, names and wording (approved by Ryan, Nov 19) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
|description=Barotrauma console commands for server admins: open the console with F3, make yourself admin in clientpermissions.xml, then kick, ban, heal and spawn. | |description=Barotrauma console commands for server admins: open the console with F3, make yourself admin in clientpermissions.xml, then kick, ban, heal and spawn. | ||
}} | }} | ||
Add admins in the '''Data\clientpermissions.xml''' file, over [[FTP Access|FTP]]. You can also open it in the '''File Manager''' under '''TOOLS''' on the Game Server page, in the '''Data''' folder. | |||
==Adding | ==Adding admins== | ||
Here | Here's an example with permissions and commands. Find a player's Steam ID: [https://steamid.io/ steamid.io]. | ||
<pre> | <pre> | ||
<ClientPermissions> | <ClientPermissions> | ||
| Line 23: | Line 23: | ||
</pre> | </pre> | ||
== Admin | == Admin commands == | ||
Press F3 in game to open the console, then type a command. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 35: | Line 35: | ||
| '''banid [clientID]''' || Bans the selected clientID from the server. | | '''banid [clientID]''' || Bans the selected clientID from the server. | ||
|- | |- | ||
| '''clientlist''' || | | '''clientlist''' || Lists the character name, clientID and ping of every player on the server in the console. | ||
|- | |- | ||
| <code>givecommandperm [clientID/SteamID/character name/IP Address]</code> (steam id) || Gives the selected player the permission to use the console commands typed in the next entry. | | <code>givecommandperm [clientID/SteamID/character name/IP Address]</code> (steam id) || Gives the selected player the permission to use the console commands typed in the next entry. | ||
| Line 47: | Line 47: | ||
| '''kickid [clientID]''' || Kicks the selected clientID from the server. | | '''kickid [clientID]''' || Kicks the selected clientID from the server. | ||
|- | |- | ||
| '''killdisconnectedtimer [seconds]''' || Sets how many seconds a disconnected player's character stays before it | | '''killdisconnectedtimer [seconds]''' || Sets how many seconds a disconnected player's character stays before it's killed. | ||
|- | |- | ||
| '''mute [character name]''' || Blocks a character from speaking through voice chat. | | '''mute [character name]''' || Blocks a character from speaking through voice chat. | ||
|- | |- | ||
| '''resetkarma [client name]''' || Resets | | '''resetkarma [client name]''' || Resets a player's karma to 100. | ||
|- | |- | ||
| <code>revokecommandperm [clientID/SteamID/character name/IP Address]</code> || Revokes the selected player's permission to use the console commands typed in the next entry. | | <code>revokecommandperm [clientID/SteamID/character name/IP Address]</code> || Revokes the selected player's permission to use the console commands typed in the next entry. | ||
| Line 57: | Line 57: | ||
| <code>revokeperm [clientID/SteamID/character name/IP Address]</code> || Revokes the selected player's permission typed in the next entry. | | <code>revokeperm [clientID/SteamID/character name/IP Address]</code> || Revokes the selected player's permission typed in the next entry. | ||
|- | |- | ||
| '''setkarma [client name] [0-100]''' || Sets | | '''setkarma [client name] [0-100]''' || Sets a player's karma to the value you give. | ||
|- | |- | ||
| '''showkarma ''' || | | '''showkarma ''' || Shows the karma of all players in the console. | ||
|- | |- | ||
| <code>showperm [clientID/SteamID/character name/IP Address]</code> || | | <code>showperm [clientID/SteamID/character name/IP Address]</code> || Shows the selected player's permissions in the console. | ||
|- | |- | ||
| '''togglecharacternames''' || | | '''togglecharacternames''' || Shows or hides the names above players. It only changes your own screen. | ||
|- | |- | ||
| '''togglekarma''' || | | '''togglekarma''' || Turns the karma system on or off. | ||
|- | |- | ||
| '''togglekarmatestmode''' || | | '''togglekarmatestmode''' || Turns karma test mode on or off. When it's on, players see each karma change and its reason, and karma bans are off. | ||
|- | |- | ||
| '''unban [character name]''' || Unbans the selected character from the server. | | '''unban [character name]''' || Unbans the selected character from the server. | ||
| Line 77: | Line 77: | ||
|} | |} | ||
[https://www.survivalservers.com/services/game_servers/barotrauma/ Barotrauma server hosting] from Survival Servers comes with instant setup and DDoS protection. | |||
Latest revision as of 12:08, 19 November 2026
Add admins in the Data\clientpermissions.xml file, over FTP. You can also open it in the File Manager under TOOLS on the Game Server page, in the Data folder.
Adding admins
Here's an example with permissions and commands. Find a player's Steam ID: steamid.io.
<ClientPermissions>
<Client
name="Player Name"
steamid="76561190000000000"
permissions="ServerLog, ConsoleCommands">
<command
name="heal" />
<command
name="spawn" />
<command
name="enablecheats" />
</Client>
</ClientPermissions>
Admin commands
Press F3 in game to open the console, then type a command.
| Command | Description |
|---|---|
| ban [character name] | Bans the selected character from the server. |
banip [IP Address/SteamID] |
Bans the selected IP Address/SteamID from the server. |
| banid [clientID] | Bans the selected clientID from the server. |
| clientlist | Lists the character name, clientID and ping of every player on the server in the console. |
givecommandperm [clientID/SteamID/character name/IP Address] (steam id) |
Gives the selected player the permission to use the console commands typed in the next entry. |
giveperm [clientID/SteamID/character name/IP Address] (steam id) |
Gives the selected player the permission typed in the next entry. |
giverank [clientID/SteamID/character name/IP Address] |
Gives the selected player the rank typed in the next entry. |
| kick [character name] | Kicks the selected character from the server. |
| kickid [clientID] | Kicks the selected clientID from the server. |
| killdisconnectedtimer [seconds] | Sets how many seconds a disconnected player's character stays before it's killed. |
| mute [character name] | Blocks a character from speaking through voice chat. |
| resetkarma [client name] | Resets a player's karma to 100. |
revokecommandperm [clientID/SteamID/character name/IP Address] |
Revokes the selected player's permission to use the console commands typed in the next entry. |
revokeperm [clientID/SteamID/character name/IP Address] |
Revokes the selected player's permission typed in the next entry. |
| setkarma [client name] [0-100] | Sets a player's karma to the value you give. |
| showkarma | Shows the karma of all players in the console. |
showperm [clientID/SteamID/character name/IP Address] |
Shows the selected player's permissions in the console. |
| togglecharacternames | Shows or hides the names above players. It only changes your own screen. |
| togglekarma | Turns the karma system on or off. |
| togglekarmatestmode | Turns karma test mode on or off. When it's on, players see each karma change and its reason, and karma bans are off. |
| unban [character name] | Unbans the selected character from the server. |
| unbanaddress [IP Address] | Unbans the selected IP Address from the server. |
| unmute [character name] | Allows a character to speak through voice chat. |
Barotrauma server hosting from Survival Servers comes with instant setup and DDoS protection.