-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
32 lines (27 loc) · 955 Bytes
/
Plugin.cs
File metadata and controls
32 lines (27 loc) · 955 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
using Exiled.API.Features;
using System;
namespace LevelEverywhere
{
public class Plugin : Plugin<Config>
{
public static Plugin Singleton { get; private set; }
public PlayerLevelManager LevelManager { get; private set; }
public override string Name => "LevelEverywhere";
public override string Author => "一只会融化的冰";
public override Version Version => new Version(1, 0, 0);
public override Version RequiredExiledVersion => new Version(8, 0, 0);
public override void OnEnabled()
{
Singleton = this;
LevelManager = new PlayerLevelManager(this);
LevelManager.SubscribeEvents();
LevelManager.Save();
base.OnEnabled();
}
public override void OnDisabled()
{
LevelManager?.UnsubscribeEvents();
base.OnDisabled();
}
}
}