-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Plugin.cs
29 lines (26 loc) · 948 Bytes
/
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
using System;
using Exiled.API.Features;
namespace SCP1162
{
public class Plugin : Plugin<Config>
{
public override string Prefix => "scp1162";
public override string Name => "SCP1162";
public override string Author => "xRoier";
public EventHandlers EventHandlers;
public override Version Version { get; } = new Version(6, 0, 0);
public override Version RequiredExiledVersion { get; } = new Version(6, 0, 0);
public override void OnEnabled()
{
EventHandlers = new EventHandlers(this);
Exiled.Events.Handlers.Player.DroppingItem += EventHandlers.OnItemDropped;
base.OnEnabled();
}
public override void OnDisabled()
{
Exiled.Events.Handlers.Player.DroppingItem -= EventHandlers.OnItemDropped;
EventHandlers = null;
base.OnDisabled();
}
}
}