-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
55 lines (43 loc) · 1.46 KB
/
Plugin.cs
File metadata and controls
55 lines (43 loc) · 1.46 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// -----------------------------------------------------------------------
// <copyright file="Plugin.cs" company="Redforce04">
// Copyright (c) Redforce04. All rights reserved.
// Licensed under the CC BY-SA 3.0 license.
// </copyright>
// -----------------------------------------------------------------------
namespace AdvancedCommandLibrary;
using System;
using LabApi.Features;
using LabApi.Loader.Features.Plugins.Enums;
using MEC;
/// <summary>
/// The main plugin class.
/// </summary>
public class Plugin : LabApi.Loader.Features.Plugins.Plugin<Config>
{
/// <inheritdoc/>
public override string Name => "AdvancedCommandLibrary";
/// <inheritdoc/>
public override string Description => "Provides an advanced yet easy system to create and load commands.";
/// <inheritdoc/>
public override string Author => "Redforce04";
/// <inheritdoc/>
public override Version Version => new (1, 0, 0);
/// <inheritdoc/>
public override LoadPriority Priority => LoadPriority.Lowest;
/// <inheritdoc/>
public override Version RequiredApiVersion => LabApiProperties.CurrentVersion;
/// <inheritdoc/>
public override void Enable()
{
if(Config is not null)
{
CommandManager.DebugMode = Config.LoggingMode;
}
Timing.CallDelayed(1f, CommandManager.LoadCommandManager);
}
/// <inheritdoc/>
public override void Disable()
{
CommandManager.UnloadCommandManager();
}
}