Hello visitor! A note about the contents of this wiki: Barotrauma is a game with several years' worth history as a free-download open source game, and this wiki has been written primarily based on this legacy version. As such, not all content is relevant to the Steam release. So please wait patiently as the contents are updated, and feel free to contribute new information once the Steam version of Barotrauma is released!

Clientpermissions.xml

From 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[edit | edit source]

Default file contents for new game installs.

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

Syntax[edit | edit source]

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[edit | edit source]

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>

Example for Dedicated Servers[edit | edit source]

This example gives the player "Mike", with the Network IP of "127.0.0.1" the ManageCampaign permission.

<?xml version="1.0" encoding="utf-8" ?>
<ClientPermissions> 
  <Client
    name="Mike"
    endpoint="127.0.0.1"
    permissions="ManageCampaign" />
</ClientPermissions>

Dedicated Servers[edit | edit source]

Note: Dedicated servers use Lidgren networking, and not the SteamP2P library, as such they will not see Steam IDs.