-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
32 lines (28 loc) · 943 Bytes
/
Plugin.cs
File metadata and controls
32 lines (28 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using HarmonyLib;
using LabApi.Features;
using LabApi.Features.Console;
namespace FixMap
{
public sealed class Plugin : LabApi.Loader.Features.Plugins.Plugin
{
public override void Enable()
{
Harmony = new Harmony("com.mapfix.main");
Harmony.DEBUG = true;
Harmony.PatchAll();
Logger.Debug("Enabled FixMap");
}
public override void Disable()
{
Harmony?.UnpatchAll();
Logger.Debug("Disabled FixMap");
}
public override string Name => "FixMap";
public override string Description => "Temporary map fix";
public override string Author => "z5tm";
public override Version Version { get; } = Version.Parse("1.0.0");
public override Version RequiredApiVersion { get; } = new(LabApiProperties.CompiledVersion);
public static Harmony? Harmony;
}
}