public function onCommand($event)
    {
        $this->data['commands'][] = array(
            'command' => $event->getCommand(),
            'arguments' => $event->getArguments(),
            'executiontime' => $event->getExecutionTime(),
        );
    }
public function onCommand($event)
    {
        $this->data['commands'][] = array(
            'command' => $event->getCommand(),
            'arguments' => $event->getArguments(),
            'executiontime' => $event->getExecutionTime(),
        );
    }
public function onCommand ( $ event ) { $ this -> data [ 'commands' ] [ ] = array ( 'command' => $ event -> getCommand ( ) , 'arguments' => $ event -> getArguments ( ) , 'executiontime' => $ event -> getExecutionTime ( ) , ) ; }
Listen for command event.

@param object $event The event object
Listen for command event .