The "CommandMap" has the "clearCommands" you know. It clear all commands that works ok, but i want just one command, and there's no any function for it. So the problem is How can i clear just one command ?
Solved it. Solution: New function in SimpleCommandMap.php: Code: public function clearCommand(Command $command, $fallbackPrefix) { $command->unregister($this); unset($this->knownCommands[$command->getName()]); $fallbackPrefix = strtolower(trim($fallbackPrefix)); $aliases = $command->getAliases(); foreach($aliases as $index => $alias){ unset($this->knownCommands[$fallbackPrefix . ":" . $alias]); unset($this->knownCommands[$alias]); } }