Constants

COMMAND_DEFAULT

COMMAND_DEFAULT

COMMAND_SCRIPT_SETTINGS

COMMAND_SCRIPT_SETTINGS

COMMAND_NEXT_MAP

COMMAND_NEXT_MAP

COMMAND_JUMP_MAP

COMMAND_JUMP_MAP

COMMAND_SET_NEXT_MAP

COMMAND_SET_NEXT_MAP

COMMAND_RESTART_MAP

COMMAND_RESTART_MAP

COMMAND_TEAM_BALANCE

COMMAND_TEAM_BALANCE

COMMAND_KICK

COMMAND_KICK

COMMAND_BAN

COMMAND_BAN

Properties

$command

$command : string

Type

string — '*' for default

$param

$param : string

Type

string — Empty to match all votes for the command

$ratio

$ratio : float

Type

float — Must be in range [0,1] or -1 to disable

Methods

fromArray()

fromArray(  $array) 

Parameters

$array

fromArrayOfArray()

fromArrayOfArray(  $array) 

Parameters

$array

getPropertyFromArray()

getPropertyFromArray(  $array,   $property) 

Parameters

$array
$property

toArray()

toArray() 

__construct()

__construct(string  $command = '', float  $ratio = 0.0) 

Parameters

string $command
float $ratio

extractProperty()

extractProperty(  $element,   $property) 

Parameters

$element
$property