This is how the /give command would be in a plugin $this->api->console->run("give ".$data["player"]->username." 298 1", "console", false); what would it be like if it was the /gamemode command