/// <summary> /// The method that gets invoked as soon as a plugin gets Disabled. /// Any content initialized in <see cref="M:OpenAPI.Plugins.OpenPlugin.Enabled(OpenAPI.OpenApi)" /> should be de-initialized in here. /// </summary> /// <param name="api">An instance to OpenApi</param> public override void Disabled(OpenApi api) { api.EventDispatcher.UnregisterEvents(this); api.CommandManager.UnloadCommands(Commands); GeneratorManager.Close(); MultiVerseManager.Close(); }