Barotrauma Admin Commands: Difference between revisions
Jump to navigation
Jump to search
m Add link to the game service page (internal linking sweep) |
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description |
||
| Line 1: | Line 1: | ||
Admins can be added by using [[FTP Access|FTP]] and navigating to '''Data\clientpermissions.xml'''. | {{#seo: | ||
|title=Barotrauma Console Commands for Admins: Cheats, Kick, Ban | |||
|description=Barotrauma console commands for server admins: open the console with F3, make yourself admin in clientpermissions.xml, then kick, ban, heal and spawn. | |||
}} | |||
Admins can be added by using [[FTP Access|FTP]] and navigating to '''Data\clientpermissions.xml'''. You can also open it in the '''File Manager''' under '''TOOLS''' on your server's page, in the '''Data''' folder. | |||
==Adding Admins== | ==Adding Admins== | ||
| Line 7: | Line 11: | ||
<Client | <Client | ||
name="Player Name" | name="Player Name" | ||
steamid=" | steamid="76561190000000000" | ||
permissions="ServerLog, ConsoleCommands"> | permissions="ServerLog, ConsoleCommands"> | ||
<command | <command | ||
| Line 13: | Line 17: | ||
<command | <command | ||
name="spawn" /> | name="spawn" /> | ||
<command | |||
name="enablecheats" /> | |||
</Client> | </Client> | ||
</ClientPermissions> | </ClientPermissions> | ||
| Line 25: | Line 31: | ||
| '''ban [character name]''' || Bans the selected character from the server. | | '''ban [character name]''' || Bans the selected character from the server. | ||
|- | |- | ||
| <code> | | <code>banip [IP Address/SteamID]</code> || Bans the selected IP Address/SteamID from the server. | ||
|- | |- | ||
| '''banid [clientID]''' || Bans the selected clientID from the server. | | '''banid [clientID]''' || Bans the selected clientID from the server. | ||
| Line 41: | 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 is killed. | ||
|- | |- | ||
| '''mute [character name]''' || Blocks a character from speaking through voice chat. | | '''mute [character name]''' || Blocks a character from speaking through voice chat. | ||
|- | |- | ||
| '''resetkarma [ | | '''resetkarma [client name]''' || Resets the karma of a client 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 51: | 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 [ | | '''setkarma [client name] [0-100]''' || Sets the karma of a client to the specified value. | ||
|- | |- | ||
| '''showkarma ''' || Outputs the karma of all players to the console. | | '''showkarma ''' || Outputs the karma of all players to the console. | ||
| Line 61: | Line 67: | ||
| '''togglekarma''' || Toggles the karma system on/off. | | '''togglekarma''' || Toggles the karma system on/off. | ||
|- | |- | ||
| '''togglekarmatestmode''' || Toggles the karma test mode on/off. When on, notifies players of a karma change and | | '''togglekarmatestmode''' || Toggles the karma test mode on/off. When on, notifies players of a karma change and its reason, also disables karma bans. | ||
|- | |- | ||
| '''unban [character name]''' || Unbans the selected character from the server. | | '''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. | | '''unmute [character name]''' || Allows a character to speak through voice chat. | ||
Revision as of 21:00, 14 October 2026
Admins can be added by using FTP and navigating to Data\clientpermissions.xml. You can also open it in the File Manager under TOOLS on your server's page, in the Data folder.
Adding Admins
Here is an example of permissions & commands. The Steam ID can be found here. --> Steam ID
<ClientPermissions>
<Client
name="Player Name"
steamid="76561190000000000"
permissions="ServerLog, ConsoleCommands">
<command
name="heal" />
<command
name="spawn" />
<command
name="enablecheats" />
</Client>
</ClientPermissions>
Admin Commands
Commands are used by pressing F3 to open the console in game.
| 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 | Outputs the character name, clientID and ping of all players in the server to 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 is killed. |
| mute [character name] | Blocks a character from speaking through voice chat. |
| resetkarma [client name] | Resets the karma of a client 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 the karma of a client to the specified value. |
| showkarma | Outputs the karma of all players to the console. |
showperm [clientID/SteamID/character name/IP Address] |
Outputs the permissions of the selected player to the console. |
| togglecharacternames | Toggle visibility of names above players. Client-side only. |
| togglekarma | Toggles the karma system on/off. |
| togglekarmatestmode | Toggles the karma test mode on/off. When on, notifies players of a karma change and its reason, also disables karma bans. |
| 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. |
Need a host? Barotrauma server hosting from Survival Servers comes with instant setup and 24/7 support.