public unregister ( pocketmine\command\CommandMap $commandMap ) : boolean | ||
$commandMap | pocketmine\command\CommandMap | |
return | boolean |
public function unregister(CommandMap $commandMap)
{
if ($this->allowChangesFrom($commandMap)) {
$this->commandMap = null;
$this->activeAliases = $this->aliases;
$this->label = $this->nextLabel;
return true;
}
return false;
}