private static void EliteAPI_DockingGrantedEvent(object sender, DockingGrantedInfo e) { //This method will be ran every time the player is allowed to dock. if (EliteAPI.Status.Gear != true) //If the gear is not deployed, deploy it. { Keyboard.KeyPress(Keys.L); } }
internal static void EliteAPI_DockingGrantedEvent(object sender, DockingGrantedInfo e) { EmbedBuilder embed = new EmbedBuilder(); embed.WithAuthor("About to dock"); embed.WithTitle($"Allowed docking at {e.StationName}"); embed.WithDescription($"In {Main.EliteAPI.Location.StarSystem}" + Environment.NewLine + $"Landing pad {e.LandingPad}"); Main.Send(embed); }