Interface IPlugin<TConfig>
- Namespace
- Exiled.API.Interfaces
- Assembly
- Exiled.API.dll
Defines the contract for basic plugin features.
public interface IPlugin<out TConfig> : IComparable<IPlugin<IConfig>> where TConfig : IConfig
Type Parameters
TConfig
The config type.
- Inherited Members
- Extension Methods
Properties
Assembly
Gets the plugin assembly.
Assembly Assembly { get; }
Property Value
Author
Gets the plugin author.
string Author { get; }
Property Value
Commands
Gets the plugin commands.
Dictionary<Type, Dictionary<Type, ICommand>> Commands { get; }
Property Value
- Dictionary<Type, Dictionary<Type, ICommand>>
Config
Gets the plugin config.
TConfig Config { get; }
Property Value
- TConfig
ConfigPath
Gets the plugin config path.
string ConfigPath { get; }
Property Value
IgnoreRequiredVersionCheck
Gets a value indicating whether a plugin should bypass the required EXILED version check. This should only be used by plugins which do not need to be updated across major version updates.
bool IgnoreRequiredVersionCheck { get; }
Property Value
InternalTranslation
Gets the internally used translations. Plugins should implement Plugin<TConfig, TTranslation> and use Translation.
ITranslation InternalTranslation { get; }
Property Value
Name
Gets the plugin name.
string Name { get; }
Property Value
Prefix
Gets the plugin prefix.
string Prefix { get; }
Property Value
Priority
Gets the plugin priority. Higher values mean higher priority and vice versa.
PluginPriority Priority { get; }
Property Value
RequiredExiledVersion
Gets the required version of Exiled to run the plugin without bugs or incompatibilities.
Version RequiredExiledVersion { get; }
Property Value
TranslationPath
Gets the plugin translation path.
string TranslationPath { get; }
Property Value
Version
Gets the plugin version.
Version Version { get; }
Property Value
Methods
OnDisabled()
Fired after disabling the plugin.
void OnDisabled()
OnEnabled()
Fired after enabling the plugin.
void OnEnabled()
OnRegisteringCommands()
Fired before registering commands.
void OnRegisteringCommands()
OnReloaded()
Fired after reloading the plugin.
void OnReloaded()
OnUnregisteringCommands()
Fired before unregistering configs.
void OnUnregisteringCommands()