mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 10:43:23 +00:00
Fixed instance default value not having the config set
This commit is contained in:
@@ -15,7 +15,7 @@ namespace CS2_SimpleAdmin;
|
||||
[MinimumApiVersion(163)]
|
||||
public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdminConfig>
|
||||
{
|
||||
public static CS2_SimpleAdmin Instance { get; private set; } = new();
|
||||
public static CS2_SimpleAdmin Instance { get; private set; } = null;
|
||||
|
||||
public static IStringLocalizer? _localizer;
|
||||
public static Dictionary<string, int> voteAnswers = new Dictionary<string, int>();
|
||||
@@ -45,6 +45,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