Beispiel #1
0
 private void Disable()
 {
     Enabled             = false;
     TrinityCombat.Party = DefaultProviders.Party;
     Log.Info("Plugin disabled! ");
     CurrentBehavior?.Deactivate();
     BotMain.OnStart -= BotMain_OnStart;
     BotMain.OnStop  -= BotMain_OnStop;
     EventManager.Disable();
     EventManager.OnPulseOutOfGame -= Pulse;
     Service.OnUpdatePreview       -= ServiceOnUpdatePreview;
     Server.ShutdownServer();
     Client.ShutdownClient();
     TabUi.RemoveTab();
     ChangeMonitor.Disable();
 }
Beispiel #2
0
        public void OnDisabled()
        {
            Enabled = false;
            Log.Info("Plugin disabled! ");

            if (CurrentBehavior != null)
            {
                CurrentBehavior.Deactivate();
            }

            BotMain.OnStart -= BotMain_OnStart;
            BotMain.OnStop  -= BotMain_OnStop;
            EventManager.Disable();
            EventManager.OnPulseOutOfGame += Pulse;
            Service.OnUpdatePreview       -= ServiceOnUpdatePreview;
            BotHistory.Disable();
            TabUi.RemoveTab();
            ChangeMonitor.Disable();
        }