Beispiel #1
0
 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;
 }
Beispiel #2
0
 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();
 }