-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlugin.cs
More file actions
47 lines (33 loc) · 1.16 KB
/
Plugin.cs
File metadata and controls
47 lines (33 loc) · 1.16 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
40
41
42
43
44
45
46
47
using System;
using Exiled.API.Features;
using Exiled.CustomItems.API;
using ProjectSCRAMBLE.Configs;
namespace ProjectSCRAMBLE
{
public class Plugin : Plugin<Config, Translation>
{
public static Plugin Instance { get; private set; }
public EventHandlers EventHandlers { get; private set; }
public override string Author { get; } = "MS";
public override string Name { get; } = "ProjectSCRAMBLE";
public override string Prefix { get; } = "ProjectSCRAMBLE";
public override Version Version { get; } = new Version(1, 5, 0);
public override Version RequiredExiledVersion { get; } = new Version(9, 13, 0);
public override void OnEnabled()
{
Instance = this;
EventHandlers = new EventHandlers();
Config.ProjectSCRAMBLE.Register();
EventHandlers.Subscribe();
base.OnEnabled();
}
public override void OnDisabled()
{
Config.ProjectSCRAMBLE.Unregister();
EventHandlers.Unsubscribe();
EventHandlers = null;
Instance = null;
base.OnDisabled();
}
}
}