doCommand and PluginClass