Hi, I was wondering if there is a way to do: PHP: Server::dispatchCommand($sender, $cmd); As the Console? This function requires a Player object and I don't believe there is a way to get the console as a player. Is there a way or is there a separate function that allows you to do this? Thanks
It doesn't require a Player object, it requires a CommandSender. You can use PHP: $this->getServer()->dispatchCommand(new ConsoleCommandSender(), $cmd);