29 lines
839 B
C#
29 lines
839 B
C#
using Dalamud.IoC;
|
|
using Dalamud.Plugin;
|
|
using Dalamud.Plugin.Services;
|
|
|
|
namespace PluginNameTemplate;
|
|
|
|
public sealed class Plugin : IDalamudPlugin
|
|
{
|
|
[PluginService] public static IDalamudPluginInterface Pi { get; private set; } = null!;
|
|
[PluginService] public static IPluginLog Log { get; private set; } = null!;
|
|
[PluginService] public static ICommandManager Commands { get; private set; } = null!;
|
|
|
|
private readonly PluginConfiguration config;
|
|
|
|
public Plugin()
|
|
{
|
|
this.config = PluginConfiguration.Load();
|
|
|
|
// Register your commands, hooks, windows, etc. here.
|
|
Log.Information("PluginNameTemplate loaded.");
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
// Unregister anything that was registered above. Order matters —
|
|
// dispose UI before hooks, hooks before services.
|
|
}
|
|
}
|