DPB2Class · Bots, plugins and tasks

PluginManager

Discover installed plugins and inspect the enabled extensions for the current session.

Namespace: DreamPoeBot.Loki.Bot

public static class PluginManager
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Class usage example: List enabled extensions →

Members and overloads

20 declared here

OnPluginDisabled

EventLink ↗
public static PluginManager.PluginEvent PluginManager.OnPluginDisabled

Raised for on plugin disabled. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

OnPluginEnabled

EventLink ↗
public static PluginManager.PluginEvent PluginManager.OnPluginEnabled

Raised for on plugin enabled. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PostStart

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PostStart

Raised for post start. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PostStop

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PostStop

Raised for post stop. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PostTick

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PostTick

Raised for post tick. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PreStart

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PreStart

Raised for pre start. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PreStop

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PreStop

Raised for pre stop. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PreTick

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PreTick

Raised for pre tick. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Disable

MethodLink ↗
public static bool PluginManager.Disable(IPlugin plugin)

Calls Disable on PluginManager with plugin and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

plugin

Specifies plugin.

Returns: A Boolean result. The member description explains the condition being checked.

Disable

MethodLink ↗
public static bool PluginManager.Disable(string name)

Calls Disable on PluginManager with name and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

Enable

MethodLink ↗
public static bool PluginManager.Enable(IPlugin plugin)

Calls Enable on PluginManager with plugin and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

plugin

Specifies plugin.

Returns: A Boolean result. The member description explains the condition being checked.

Enable

MethodLink ↗
public static bool PluginManager.Enable(string name)

Calls Enable on PluginManager with name and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

IsEnabled

MethodLink ↗
public static bool PluginManager.IsEnabled(IPlugin plugin)

Checks whether enabled using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

plugin

Specifies plugin.

Returns: A Boolean result. The member description explains the condition being checked.

IsEnabled

MethodLink ↗
public static bool PluginManager.IsEnabled(string name)

Checks whether enabled using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

Start

MethodLink ↗
public static void PluginManager.Start()

Starts this component's lifecycle.

Return type: voidNo return value.

Stop

MethodLink ↗
public static void PluginManager.Stop()

Stops this component's lifecycle.

Return type: voidNo return value.

Tick

MethodLink ↗
public static void PluginManager.Tick()

Updates this component for the current bot tick. Keep repeated work short.

Return type: voidNo return value.

DisabledPlugins

PropertyLink ↗
public static List<IPlugin> PluginManager.DisabledPlugins { get; }

Gets the disabled plugins collection. Its element types are linked below.

Value type: List<IPlugin>
Explore IPlugin → members & methods

Contract for an extension that participates in the bot lifecycle. The inherited contracts describe initialization, enablement and cleanup.

EnabledPlugins

PropertyLink ↗
public static List<IPlugin> PluginManager.EnabledPlugins { get; }

Gets the enabled plugins collection. Its element types are linked below.

Value type: List<IPlugin>
Explore IPlugin → members & methods

Contract for an extension that participates in the bot lifecycle. The inherited contracts describe initialization, enablement and cleanup.

Plugins

PropertyLink ↗
public static IReadOnlyList<IPlugin> PluginManager.Plugins { get; }

Gets the plugins collection. Its element types are linked below.

Value type: IReadOnlyList<IPlugin>
Explore IPlugin → members & methods

Contract for an extension that participates in the bot lifecycle. The inherited contracts describe initialization, enablement and cleanup.

Class usage examples

These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

List enabled extensions

foreach (var plugin in PluginManager.EnabledPlugins)
{
    var displayName = plugin.Name;
}

Use the enabled list when a feature depends on another extension being active.

Guides using this class

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.