Added check for registered alias command, useful when overriding

This commit is contained in:
Shoghi Cervantes 2014-06-30 21:14:00 +02:00
parent 6d6059b61f
commit d4881260da

View File

@ -148,7 +148,7 @@ class SimpleCommandMap implements CommandMap{
return false; return false;
} }
if(isset($this->knownCommands[$label]) and $this->knownCommands[$label]->getLabel() === $label){ if(isset($this->knownCommands[$label]) and $this->knownCommands[$label]->getLabel() !== null and $this->knownCommands[$label]->getLabel() === $label){
return false; return false;
} }