private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded) { if (plugin == null) return PluginResponse.PluginNotFound; plugin.Unload(); if (keepUnloaded) plugin.status = PluginStatus.Disabled; return PluginResponse.Ok; }
private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded) { if (plugin == null) { return(PluginResponse.PluginNotFound); } plugin.Unload(); if (keepUnloaded) { plugin.status = PluginStatus.Disabled; } return(PluginResponse.Ok); }
private PluginResponse UnloadPlugin(Plugin plugin, bool keepUnloaded) { if (plugin == null) return PluginResponse.PluginNotFound; plugin.Unload(); if (keepUnloaded) plugin.status = PluginStatus.Disabled; return PluginResponse.Ok; }