API Reference › Plugins
IPluginManager
InterfaceNamespace: SwiftlyS2.Shared.Plugins · Assembly: SwiftlyS2.CS2.dll
public interface IPluginManagerMethods
Gets a dictionary of all plugin metadata, keyed by plugin ID.
Dictionary<string, PluginMetadata> GetAllPluginMetadata()Returns
Gets a dictionary of all plugin statuses, keyed by plugin ID.
Dictionary<string, PluginStatus> GetAllPluginStatuses()Returns
Gets a list of all plugin IDs.
IEnumerable<string> GetAllPlugins()Returns
Gets the metadata of the specified plugin.
PluginMetadata? GetPluginMetadata(string pluginId)Parameters
- pluginIdstringThe ID of the plugin.
Returns
Gets the path of the specified plugin.
string? GetPluginPath(string pluginId)Parameters
- pluginIdstringThe ID of the plugin.
Returns
Gets a dictionary of all plugin paths, keyed by plugin ID.
Dictionary<string, string> GetPluginPaths()Returns
Gets the status of the specified plugin.
PluginStatus? GetPluginStatus(string pluginId)Parameters
- pluginIdstringThe ID of the plugin.
Returns
Loads the specified plugin.
bool LoadPlugin(string pluginId, bool silent = false)Parameters
Reloads the specified plugin.
bool ReloadPlugin(string pluginId, bool silent = false)Parameters