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