Renamed CommandResult to Result
Added a check to PluginInfo.Type to make sure it's a plugin