Plugin YAML and command API bugfix