Constants

ACTION_OPEN_HELP_ALL

ACTION_OPEN_HELP_ALL

ACTION_OPEN_ADMIN_HELP_ALL

ACTION_OPEN_ADMIN_HELP_ALL

Properties

$playerCommands

$playerCommands : 

Type

$adminCommands

$adminCommands : 

Type

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new Commands Manager

Parameters

\ManiaControl\ManiaControl $maniaControl

handleOnInit()

handleOnInit() 

Handle ManiaControl OnInit Callback

command_adminHelp()

command_adminHelp(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Show a list of Admin Commands

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_playerHelp()

command_playerHelp(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Show a list of Player Commands

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

command_playerHelpAll()

command_playerHelpAll(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Show a ManiaLink list of Player Commands

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

showHelpAllList()

showHelpAllList(array  $commands, mixed  $player) 

Show the HelpAll list to the player.

Parameters

array $commands
mixed $player

command_adminHelpAll()

command_adminHelpAll(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Show a ManiaLink list of Admin Commands

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

registerCommand()

registerCommand(string  $name, boolean  $adminCommand = false, string  $description = '', string  $method) 

Register a new Command

Parameters

string $name
boolean $adminCommand
string $description
string $method

parseHelpList()

parseHelpList(array  $commands, boolean  $isHelpAll = false, \ManiaControl\Players\Player  $player = null) : string

Parse list with commands from array

Parameters

array $commands
boolean $isHelpAll
\ManiaControl\Players\Player $player

Returns

string