Esempio n. 1
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();
        }
Esempio n. 2
0
 private void BotMain_OnStop(IBot bot)
 {
     CurrentBehavior.Deactivate();
 }