Changes between Version 1 and Version 2 of Console Commands


Ignore:
Timestamp:
24.07.2014 20:50:42 (10 years ago)
Author:
Alloc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Console Commands

    v1 v2  
     1== Console Commands ==
     2
     3In order to do some bits of administration or even for informational purposes 7 Days to Die integrates a console system. This can be accessed in three ways:
     4* In game by a client. The key to open the console is layout dependend, e.g. for a german layout it is the "ö"
     5* Telnet. This has to be enabled server side and can then be accessed with a simple Telnet client
     6* Web control panel. Has to be enabled server side too and can then be accessed with any web browser
     7
     8
     9== admins.xml and in game console ==
     10
     11=== Unmodified server code ===
     12Each command has to have a permission level set in ''admins.xml'' and the player who wants to use the command must have the appropriate level, i.e. the permission level of the player must be lower or equal to the permission level of the command to be executed. All commands that are not defined in the ''admins.xml'' can not be executed at all.
     13
     14'''Example:'''
     15''admins.xml'':
     16{{{
     17<?xml version="1.0" encoding="UTF-8"?>
     18<adminTools>
     19    <admins>
     20        <admin steamID="123456" permission_level="0" />
     21        <admin steamID="987654" permission_level="4" />
     22    </admins>
     23
     24    <permissions>
     25        <permission cmd="dm" permission_level="3" />
     26        <permission cmd="mem" permission_level="4" />
     27        <permission cmd="admin" permission_level="0" />
     28        <permission cmd="kick" permission_level="5" />
     29        <permission cmd="lt" permission_level="10" />
     30        <permission cmd="setgameprefs" permission_level="0" />
     31        <permission cmd="le" permission_level="1000" />
     32    </permissions>
     33</adminTools>
     34}}}
     35
     36* Player with ID 123456 (permission level 0):
     37  * ''dm'' -> ok
     38  * ''mem'' -> ok
     39  * ''admin'' -> ok
     40  * ''sg'' (which is the short version of ''setgameprefs'') -> denied (not in list exactly like this)
     41  * ''shutdown'' -> denied (not in list at all)
     42* Player with ID 987654 (permission level 4):
     43  * ''dm'' -> denied (dm requires permission level of 3 or less)
     44  * ''mem'' -> ok
     45  * ''kick'' -> ok
     46  * ''le'' -> ok
     47* Any other player with no defined permission level:
     48  * ''le'' -> denied (permission level 1000 is just an arbitrary number)
     49  * any other command -> denied
     50
     51=== Running a server with the [[Server fixes]] installed ===
     52
     53Mostly the same applies as without the fixes. Changes are:
     54* A command with permission level of >=1000 can be executed by '''any''' player, even those not listed in the ''admins.xml'' at all
     55* Any command not having an permission level set in ''admins.xml'' will automatically have a permission level of 0
     56* Commands defined in the ''admins.xml'' affect both short and long versions
     57
     58'''Example:'''
     59Considering the same ''admins.xml'' as before:
     60* Player with ID 123456 (permission level 0):
     61  * ''dm'' -> ok
     62  * ''mem'' -> ok
     63  * ''admin'' -> ok
     64  * ''sg'' (which is the short version of ''setgameprefs'') -> '''ok''' (''setgameprefs'' is defined so it also affects ''sg'')
     65  * ''shutdown'' -> '''ok''' (implicitly defined as permission level 0)
     66* Player with ID 987654 (permission level 4):
     67  * ''dm'' -> denied (dm requires permission level of 3 or less)
     68  * ''mem'' -> ok
     69  * ''kick'' -> ok
     70  * ''le'' -> ok
     71* Any other player with no defined permission level:
     72  * ''le'' -> '''ok''' (permission level 1000 -> any player can execute this command)
     73  * any other command -> denied
     74
     75
     76== Implemented commands ==
    177
    278||= Command =||= Parameters =||= Description =||