-
Notifications
You must be signed in to change notification settings - Fork 4
/
YongAnFramePlugin.cs
36 lines (33 loc) · 2.06 KB
/
YongAnFramePlugin.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
using Exiled.API.Enums;
using Exiled.API.Features;
using SCPSLAudioApi;
using YongAnFrame.Players;
using YongAnFrame.Roles;
namespace YongAnFrame
{
public sealed class YongAnFramePlugin : Plugin<YongAnFrameConfig>
{
private static YongAnFramePlugin instance;
public static YongAnFramePlugin Instance => instance;
public override PluginPriority Priority => PluginPriority.First;
public override bool IgnoreRequiredVersionCheck => true;
public override void OnEnabled()
{
Log.Info("\r\n __ __ ______ __ __ ______ ______ __ __ \r\n/\\ \\_\\ \\ /\\ __ \\ /\\ \"-.\\ \\ /\\ ___\\ /\\ __ \\ /\\ \"-.\\ \\ \r\n\\ \\____ \\ \\ \\ \\/\\ \\ \\ \\ \\-. \\ \\ \\ \\__ \\ \\ \\ __ \\ \\ \\ \\-. \\ \r\n \\/\\_____\\ \\ \\_____\\ \\ \\_\\\\\"\\_\\ \\ \\_____\\ \\ \\_\\ \\_\\ \\ \\_\\\\\"\\_\\ \r\n \\/_____/ \\/_____/ \\/_/ \\/_/ \\/_____/ \\/_/\\/_/ \\/_/ \\/_/ \r\n \r\n ______ ______ ______ __ __ ______ \r\n/\\ ___\\ /\\ == \\ /\\ __ \\ /\\ \"-./ \\ /\\ ___\\ \r\n\\ \\ __\\ \\ \\ __< \\ \\ __ \\ \\ \\ \\-./\\ \\ \\ \\ __\\ \r\n \\ \\_\\ \\ \\_\\ \\_\\ \\ \\_\\ \\_\\ \\ \\_\\ \\ \\_\\ \\ \\_____\\ \r\n \\/_/ \\/_/ /_/ \\/_/\\/_/ \\/_/ \\/_/ \\/_____/ \r\n \r\n ");
instance = this;
Log.Info("============System============");
FramePlayer.SubscribeStaticEvents();
MusicManager.Instance.Init();
CustomRolePlus.SubscribeStaticEvents();
Startup.SetupDependencies();
base.OnEnabled();
}
public override void OnDisabled()
{
instance = null;
FramePlayer.UnsubscribeStaticEvents();
CustomRolePlus.UnsubscribeStaticEvents();
base.OnDisabled();
}
}
}