-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathRepoAdminMenu.cs
More file actions
39 lines (27 loc) · 1.09 KB
/
RepoAdminMenu.cs
File metadata and controls
39 lines (27 loc) · 1.09 KB
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
33
34
35
36
37
38
39
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
namespace RepoAdminMenu {
[BepInPlugin(mod_guid, mod_name, mod_version)]
[BepInDependency("REPOLib", BepInDependency.DependencyFlags.HardDependency)]
[BepInDependency("nickklmao.menulib", BepInDependency.DependencyFlags.HardDependency)]
public class RepoAdminMenu : BaseUnityPlugin {
private const string mod_guid = "proferabg.REPO.RepoAdminMenu";
private const string mod_name = "Repo Admin Menu";
private const string mod_version = "1.0.15";
private static RepoAdminMenu _plugin;
public static Harmony harmony = new Harmony(mod_guid);
public static ManualLogSource mls;
public void Awake() {
// Plugin startup logic
if (_plugin == null) {
_plugin = this;
}
mls = BepInEx.Logging.Logger.CreateLogSource(mod_name);
Configuration.Init(Config);
Settings.Init();
harmony.PatchAll();
mls.LogInfo($"R.A.M. ({mod_version}) has been allocated!");
}
}
}