pocketmine\command\SimpleCommandMap::registerAlias PHP Метод

registerAlias() приватный Метод

private registerAlias ( Command $command, $isAlias, $fallbackPrefix, $label )
$command Command
    private function registerAlias(Command $command, $isAlias, $fallbackPrefix, $label)
    {
        $this->knownCommands[$fallbackPrefix . ":" . $label] = $command;
        if (($command instanceof VanillaCommand or $isAlias) and isset($this->knownCommands[$label])) {
            return false;
        }
        if (isset($this->knownCommands[$label]) and $this->knownCommands[$label]->getLabel() !== null and $this->knownCommands[$label]->getLabel() === $label) {
            return false;
        }
        if (!$isAlias) {
            $command->setLabel($label);
        }
        $this->knownCommands[$label] = $command;
        return true;
    }