forked from cactus-patch/ExtendedItems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
33 lines (26 loc) · 992 Bytes
/
Plugin.cs
File metadata and controls
33 lines (26 loc) · 992 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
33
using Exiled.API.Features;
using Exiled.CustomItems.API.Features;
namespace ExtendedItems
{
public class Plugin : Plugin<Config>
{
public override string Prefix => "Cactus Patch";
public override string Name => "Extended Items";
public override string Author => "Noobest1001";
public override Version Version => new(3, 1, 0);
public override Version RequiredExiledVersion => new(9, 5, 0);
public static Plugin? Instance;
public override void OnEnabled() {
Instance = this;
Log.Info("Registering items");
CustomItem.RegisterItems(overrideClass: Config);
base.OnEnabled();
}
public override void OnDisabled() {
Instance = null;
Log.Info("Unregistering items");
CustomItem.UnregisterItems();
base.OnDisabled();
}
}
}