Interface IPlugin<TConfig>
Defines the contract for basic plugin features.
Inherited Members
Namespace: Exiled.API.Interfaces
Assembly: Exiled.API.dll
Syntax
public interface IPlugin<out TConfig> : IComparable<IPlugin<IConfig>> where TConfig : IConfig
Type Parameters
| Name | Description |
|---|---|
| TConfig | The config type. |
Properties
| Improve this Doc View SourceAssembly
Gets the plugin assembly.
Declaration
Assembly Assembly { get; }
Property Value
| Type | Description |
|---|---|
| System.Reflection.Assembly |
Author
Gets the plugin author.
Declaration
string Author { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Commands
Gets the plugin commands.
Declaration
Dictionary<Type, Dictionary<Type, ICommand>> Commands { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.Type, System.Collections.Generic.Dictionary<System.Type, CommandSystem.ICommand>> |
Config
Gets the plugin config.
Declaration
TConfig Config { get; }
Property Value
| Type | Description |
|---|---|
| TConfig |
ConfigPath
Gets the plugin config path.
Declaration
string ConfigPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
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.
Declaration
bool IgnoreRequiredVersionCheck { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
InternalTranslation
Gets the internally used translations. Plugins should implement Plugin<TConfig, TTranslation> and use Translation.
Declaration
ITranslation InternalTranslation { get; }
Property Value
| Type | Description |
|---|---|
| ITranslation |
Name
Gets the plugin name.
Declaration
string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Prefix
Gets the plugin prefix.
Declaration
string Prefix { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Priority
Gets the plugin priority. Higher values mean higher priority and vice versa.
Declaration
PluginPriority Priority { get; }
Property Value
| Type | Description |
|---|---|
| PluginPriority |
RequiredExiledVersion
Gets the required version of Exiled to run the plugin without bugs or incompatibilities.
Declaration
Version RequiredExiledVersion { get; }
Property Value
| Type | Description |
|---|---|
| System.Version |
TranslationPath
Gets the plugin translation path.
Declaration
string TranslationPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Version
Gets the plugin version.
Declaration
Version Version { get; }
Property Value
| Type | Description |
|---|---|
| System.Version |
Methods
| Improve this Doc View SourceOnDisabled()
Fired after disabling the plugin.
Declaration
void OnDisabled()
OnEnabled()
Fired after enabling the plugin.
Declaration
void OnEnabled()
OnRegisteringCommands()
Fired before registering commands.
Declaration
void OnRegisteringCommands()
OnReloaded()
Fired after reloading the plugin.
Declaration
void OnReloaded()
OnUnregisteringCommands()
Fired before unregistering configs.
Declaration
void OnUnregisteringCommands()