mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
Added instance getter on the base plugin class for the menus
This commit is contained in:
@@ -21,6 +21,8 @@ namespace CS2_SimpleAdmin;
|
||||
[MinimumApiVersion(159)]
|
||||
public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdminConfig>
|
||||
{
|
||||
public static CS2_SimpleAdmin Instance { get; private set; }
|
||||
|
||||
public static IStringLocalizer? _localizer;
|
||||
public static ConcurrentBag<string> gaggedPlayers = new ConcurrentBag<string>();
|
||||
//public static ConcurrentBag<int> mutedPlayers = new ConcurrentBag<int>();
|
||||
@@ -42,6 +44,8 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
||||
|
||||
public override void Load(bool hotReload)
|
||||
{
|
||||
Instance = this;
|
||||
|
||||
registerEvents();
|
||||
|
||||
if (hotReload)
|
||||
|
||||
Reference in New Issue
Block a user