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 PluginManagerView DPB1 version →

Examples

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.

Members and overloads

20 results

OnPluginDisabled

EventLink ↗
public static PluginManager.PluginEvent PluginManager.OnPluginDisabled

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

OnPluginEnabled

EventLink ↗
public static PluginManager.PluginEvent PluginManager.OnPluginEnabled

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

PostStart

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PostStart

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

PostStop

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PostStop

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

PostTick

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PostTick

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

PreStart

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PreStart

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

PreStop

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PreStop

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

PreTick

EventLink ↗
public static PluginManager.PluginEvent PluginManager.PreTick

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

Disable

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

Executes the disable operation with the supplied arguments.

pluginIPlugin
Specifies plugin.

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

Disable

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

Executes the disable operation with the supplied arguments.

namestring
Specifies name.

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

Enable

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

Executes the enable operation with the supplied arguments.

pluginIPlugin
Specifies plugin.

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

Enable

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

Executes the enable operation with the supplied arguments.

namestring
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.

pluginIPlugin
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.

namestring
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.

Stop

MethodLink ↗
public static void PluginManager.Stop()

Stops this component's lifecycle.

Tick

MethodLink ↗
public static void PluginManager.Tick()

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

DisabledPlugins

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

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

EnabledPlugins

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

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

Plugins

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

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

Related types

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