BackNext

 Define Commands

  name  : The name you want to call your command!
  group : The permission level needed to execute the command!
  cmd     : The (Rcon command/Bec) Root command. arguments are not passed here!
  time    : Leave empty except for ban commands!
  text      : Reason for kick/ban commands. but also to set default values for maxping if no argument are given on the chat line!
  desc  : Used to describe the command. will be used in the help system

  When you create a name for your command. it should always start with a "key" character. let it be. !,  @, $ or Whatever suits you best.
  Let it also be know that # is used by arma itself for the standard commands, and can not be use as a 1st character key sign
 

  note: keep id=  in order for your "<command id=X>" block. else parsing the file will cause errors. first command starts with id="0"
 
Example

C:\ServerTools\Bec\Config\Commands.xml


  List of Commands you are able to specify

General Arma Commands

* #Shutdown
* #Restart
* #Reassign
* #Lock
* #Unlock
* #Missions <- if you create and use this command. there should be a logged in admin, else you just get wait for host.
* #Mission

Be Commands

* Kick: Base command for kicking
* Ban: Base command for banning
* Banip: Base command for banning a ip
* Maxping: Base command for setting maxping
* Say: Base command to send a message


Special Bec Commands

* warn Will give a warning to a player. Ie. : !wrn foo
* grant Grand a player tmp admin premissions
* degrantRemove a tmp admin
* helpWill show basic info about commands
* pinfoWill show info on a player you spesify
* ainfoWill show admins online
* makeroomWill kick N players based on join time, last joined gets kicked. Ie. : !mr 2 , Will kick the 2 last joiners
* uptimeWill Show server uptime
* externalExecute a external bat or cmd script
* kidWill kick a player based on his BeId. Ie. : !kid 2 , will kick the player with id2
* bid Same as kid but will ban. with kid & bid you need to use #BE_client players to get the id's
* loadadmins Will reloade the admin xml file
* loadcommandsWill reloade the command xml file


Commands that have no meaning and will be ignored if specified in the Commands.xml
* Players
* Bans
* Loadbans
* Writebans
* Addban
* Removeban
* Rconpassword
Bec uses some of these commands internally.



  A Commands.Xml Example File

<?xml version="1.0"?>
<BeCommands>
    <!--
    Define Ingame Commands

    name  : The name you want to call your command!
    group : The premission level needed to execute the command!
    cmd   : The Rcon command. Root command. arguments are not passed here!
    time  : leave empty except for ban commands!
    text  : Used as reason for kick/ban commands. but also to set default value for maxping command
    desc  : Used to describe the command. will be used in the help system
    
    -->
    
    <!-- Generel Server Commands. -->
    <command id="0">
        <name>!sht</name>
        <group>1</group>
        <cmd> #shutdown</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Shutdowns the dedicated arma server</desc>
    </command>
    
    <command id="1">
        <name>!mis</name>
        <group>1</group>
        <cmd> #missions</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Show mission. Carefull with this command. an admin should be logged in if this is to be used</desc>
    </command>    
    
    <command id="2">
        <name>!res</name>
        <group>4</group>
        <cmd># restart</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Restart mission with current player slot selection</desc>
    </command>    
    
    <command id="3">
        <name>!rea</name>
        <group>4</group>
        <cmd># reassign</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Restart the mission with new player slot selection</desc>
    </command>        
    
    <command id="4">
        <name>!lck</name>
        <group>3</group>
        <cmd># lock</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Locks the Server. No one will be able to join.</desc>
    </command>    

    <command id="5">
        <name>!ulck</name>
        <group>4</group>
        <cmd># unlock</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Unlocks the Server.</desc>
    </command>
    
    <command id="6">
        <name>!mp</name>
        <group>3</group>
        <cmd> maxping</cmd>
        <time></time>
        <text>150</text>
        <desc>INFO :: Set a maxping limit on the server.</desc>
    </command>        
    
    <command id="7">
        <name>!cm</name>
        <group>4</group>
        <cmd># mission</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Change Mission. !cm Mission_File_Name -pbo</desc>
    </command>    
    
    <!--
        Ban Commands.
        the text field in ban has a spesial "placeholder" _time_ ,when used it will show timenow+bantime.
also ther is a _name_ placeholder to show which admin did the ban. _name_ will also work for kick commands.
    -->

    <command id="8">
        <name>!bpl</name>
        <group>0</group>
        <cmd> ban</cmd>
        <time>0</time>
        <text>Decision made by admin _name_</text>
        <desc>INFO :: Perm Ban a player.</desc>
    </command>    
    
    <command id="9">
        <name>!btk</name>
        <group>1</group>
        <cmd>ban</cmd>
        <time>60</time>
        <text>Teamkilling not tolerated! Banned by admin _name_ ,You are banned until _time_</text>
        <desc>INFO :: Ban a player for 1 hour.</desc>
    </command>    
    
    <!-- 10 Min Ban -->
    <command id="10">
        <name>!bst</name>
        <group>2</group>
        <cmd>ban</cmd>
        <time>10</time>
        <text>Idiot behavior belongs elsewhere! Banned by admin _name_ ,You are banned until _time_</text>
        <desc>INFO :: Ban a player for 10 min.</desc>
    </command>    
    
    <command id="11">
        <name>!kpl</name>
        <group>3</group>
        <cmd> kick</cmd>
        <time></time>
        <text>Decision made by admin _name_!</text>
        <desc>INFO :: Kick a player.</desc>
    </command>

    <command id="12">
        <name>!bid</name>
        <group>1</group>
        <cmd> bid</cmd>
        <time>0</time>
        <text>Admins Decision!</text>
        <desc>INFO :: Kick a player based on the BEID. use #Beclient players to get he id number</desc>        
    </command>
    
    <command id="13">
        <name>!kid</name>
        <group>3</group>
        <cmd> kid</cmd>
        <time></time>
        <text>Admins Decision!</text>
        <desc>INFO :: Kick a player based on the PID. use #userlist to find the pid</desc>        
    </command>        
    
    <command id="14">
        <name>!wrn</name>
        <group>3</group>
        <cmd> warn</cmd>
        <time></time>
        <text>This is a Warning given by admin _name_</text>
        <desc>INFO :: Send a warming to a player, it will increase the warncount defined in the config file</desc>        
    </command>
    
    <command id="15">
        <name>!ata</name>
        <group>0</group>
        <cmd> grant</cmd>
        <time></time>
        <text>4</text>
        <desc>INFO :: Add a temporary admin</desc>
    </command>
    
    <command id="16">
        <name>!rta</name>
        <group>0</group>
        <cmd> degrant</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Remove temporary admin.</desc>        
    </command>    

    <command id="17">
        <name>!mr</name>
        <group>0</group>
        <cmd> makeroom</cmd>
        <time></time>
        <text>Making Room For Members</text>
        <desc>INFO :: Kick X numbers of player based on join time. last joined players will get kicked.</desc>
    </command>        

    <command id="18">
        <name>!help</name>
        <group>0</group>
        <cmd> help</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Show this message</desc>
    </command>
    
    <command id="19">
        <name>!pinf</name>
        <group>0</group>
        <cmd> pinfo</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Show player info. Beid and join time</desc>
    </command>
    
    <command id="20">
        <name>!ainf</name>
        <group>0</group>
        <cmd> ainfo</cmd>
        <time></time>
        <text></text>
        <desc>INFO :: Show Admins online</desc>
    </command>

<command id="21">
    <name>!say</name>
    <group>3</group>
    <cmd> say</cmd>
    <time></time>
    <text></text>
     <desc>INFO :: Send a Battleye message to all players. !say text or send a private massage !say name !text</desc>
</command>  


<command id="
22">
<name>!upt</name>
<group>10</group>
<cmd> uptime</cmd>
<time></time>
<text></text>
<desc>INFO :: Show server uptime</desc>
</command>
    
<command id="
23">
<name>!myapp</name>
<group>2</group>
<cmd> external</cmd>
<time></time>
<text>c:\path\to\myapp.bat</text>
<desc></desc>
</command>

<command id="
24">
<name>!raf</name>
<group>1</group>
<cmd> loadadmins</cmd>
<time></time>
<desc>INFO :: Reloade the admin xml file</desc>
</command>

<command id="
25">
<name>!rcf</name>
<group>1</group>
<cmd> loadcommands</cmd>
<time></time>
<desc>INFO :: Reloade the command xml file</desc>
</command>

</BeCommands>

 

  Some Command can have spesial arguments in them and some you can set default value in.
 
  With maxing you can set the default maxping in the text tag

<text>200</text>

  So when using the command.
  !mp it will automaticly set it to 200 ms.
  its the same as typing
  !mp 200


  Ban commands can have _time_ that can be used in the text tag.

<time>10</time>
<text>You are banned until _time_</text>

  So when you ban some one when using the __time__ in the text tag, the banned player will get a ban message looking like this.

You are banned until 2012.05.30 18:30

  If you use a custom reason. the entire <text> tag will be ignored.
  !bpl foobar !r My new reason

  In the <desc> tag you set help information for your commands.

  !help !bpl

  Bec will then send a private massage to the admin who requested help info about the command.
  In this case it would send you this message

  Read more about how the permission system works.

Back | General Command Info and Usage

* warn