PHP: $cmd = array("YourCommand1", "YourCommand2");$this->getServer()->dispatchCommand(new ConsoleCommandSender(), $cmd[0]));