diff --git a/src/pocketmine/command/SimpleCommandMap.php b/src/pocketmine/command/SimpleCommandMap.php index 1eb2c87df..02926d092 100644 --- a/src/pocketmine/command/SimpleCommandMap.php +++ b/src/pocketmine/command/SimpleCommandMap.php @@ -186,7 +186,7 @@ class SimpleCommandMap implements CommandMap{ return false; } - if(isset($this->knownCommands[$label]) and $this->knownCommands[$label]->getLabel() !== null and $this->knownCommands[$label]->getLabel() === $label){ + if(isset($this->knownCommands[$label]) and $this->knownCommands[$label]->getLabel() === $label){ return false; }