generated from Misaka-SL-Project/TemplatePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.cs
32 lines (29 loc) · 1.05 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Exiled.API.Features;
namespace BetterTeslaGates
{
public class Plugin : Plugin<Config>
{
public override string Author { get; } = "Killla";
public override string Name { get; } = "Better Tesla Gates";
public override string Prefix { get; } = "BetterTeslaGates";
public override Version Version { get; } = new Version(3, 0, 0);
public override Version RequiredExiledVersion { get; } = new Version(8, 0, 0);
private EventHandlers.EventHandlers EventHandlers;
public override void OnEnabled()
{
EventHandlers = new EventHandlers.EventHandlers(this);
Exiled.Events.Handlers.Player.TriggeringTesla += EventHandlers.OnTriggeringTesla;
base.OnEnabled();
}
public override void OnDisabled()
{
Exiled.Events.Handlers.Player.TriggeringTesla -= EventHandlers.OnTriggeringTesla;
base.OnDisabled();
}
}
}