Clientpermissions.xml

From Official Barotrauma Wiki
Jump to: navigation, search

clientpermissions.xml is a file that stores permissions and allowed console commands of every client connected to the server.

It is located in Barotrauma/Data.

Default

Default file contents for new game installs.

<?xml version="1.0" encoding="utf-8" ?>
<ClientPermissions>  
</ClientPermissions>

Syntax

While permissions are usually given with ranks or in-game commands, they can also be given by manually editing the clientpermissions file.

The following code is the syntax for a single client entry:

<Client
    name="<player name>"
    steamid="<steamid>"
    permissions="<permission(s)>">
    <command
      name="<commandname>" />
  </Client>

Example

This example gives the player "John", with the Steam ID of "123456789", server log and console command permissions, along with the heal and spawn command.

<?xml version="1.0" encoding="utf-8" ?>
<ClientPermissions> 
<Client
    name="John"
    steamid="123456789"
    permissions="ServerLog, ConsoleCommands">
    <command
      name="heal" />
    <command
      name="spawn" />
  </Client>
</ClientPermissions>