Hi all, I'm trying to update my plugin to the new API. What would this became? PHP: $this->api->console->run("example", $player)
I think I've got it by myself: PHP: $this->getServer()->dispatchCommand("example", $player); Would this work?
My $player is actually a Player object from $event->getPlayer(). What if instead I want the console to execute the command?