-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathPlugin.cs
43 lines (36 loc) · 1.03 KB
/
Plugin.cs
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
40
41
42
43
using System;
using System.Reflection;
using System.ComponentModel;
using HarmonyLib;
using BepInEx;
using Utilla;
namespace AirJump
{
[BepInPlugin(PluginInfo.GUID, PluginInfo.Name, PluginInfo.Version)]
[BepInDependency("org.legoandmars.gorillatag.utilla", "1.6.1")]
[BepInDependency("com.kylethescientist.gorillatag.computerplusplus", "1.0.1")]
[ModdedGamemode]
public class Plugin : BaseUnityPlugin
{
public static bool inModded;
public void Awake()
{
new Harmony(PluginInfo.GUID).PatchAll(Assembly.GetExecutingAssembly());
}
void OnDisable()
{
Console.WriteLine("Please enable/disable via AirJump screen");
enabled = true;
}
[ModdedGamemodeJoin]
private void RoomJoined(string gamemode)
{
inModded = true;
}
[ModdedGamemodeLeave]
private void RoomLeft(string gamemode)
{
inModded = false;
}
}
}