pocketmine\command\Command::getAliases PHP Méthode

getAliases() public méthode

public getAliases ( ) : string[]
Résultat string[]
    public function getAliases()
    {
        return $this->activeAliases;
    }

Usage Example

 public function unregister(Command $command)
 {
     unset($this->knownCommands[strtolower($command->getName())]);
     foreach ($command->getAliases() as $alias) {
         unset($this->knownCommands[strtolower($alias)]);
     }
 }