public override void OnDisabled() { base.OnDisabled(); Singleton = null; ScriptStore.Scripts = new Dictionary <string, string>(); ScriptActions.RemoveEvents(); Exiled.Events.Handlers.Server.RestartingRound -= ScriptActions.Reset; Exiled.Events.Handlers.Server.ReloadedConfigs -= OnConfigUpdate; }
public override void OnEnabled() { base.OnEnabled(); Singleton = this; ScriptStore.LoadScripts(); ScriptActions.AddEvents(); Exiled.Events.Handlers.Server.RestartingRound += ScriptActions.Reset; Exiled.Events.Handlers.Server.ReloadedConfigs += OnConfigUpdate; ScriptActions.Reset(); }