/** * @param string $name * @return bool */ public function isCommandRegistered($name) { $rcmd = $this->plugin->getServer()->getCommandMap()->getCommand(strtolower($name)); return $rcmd instanceof RCMD and $rcmd->isRegistered(); }