public function deletePlugin($pluginId)
    {
        if (!isset($this->commandPlugin[$pluginId])) {
            return;
        }

        foreach ($this->commandPlugin[$pluginId] as $cmdTxt => $command) {
            unset($this->commands[$cmdTxt]);
        }
        unset($this->commandPlugin[$pluginId]);
    }
public function deletePlugin($pluginId)
    {
        if (!isset($this->commandPlugin[$pluginId])) {
            return;
        }

        foreach ($this->commandPlugin[$pluginId] as $cmdTxt => $command) {
            unset($this->commands[$cmdTxt]);
        }
        unset($this->commandPlugin[$pluginId]);
    }
public function deletePlugin ( $ pluginId ) { if ( ! isset ( $ this -> commandPlugin [ $ pluginId ] ) ) { return ; } foreach ( $ this -> commandPlugin [ $ pluginId ] as $ cmdTxt => $ command ) { unset ( $ this -> commands [ $ cmdTxt ] ) ; } unset ( $ this -> commandPlugin [ $ pluginId ] ) ; }
Remove all chat commands registered for a plugin.

@param $pluginId
Remove all chat commands registered for a plugin .