I believe the jsbsim plug-in has an event you can subscribe to for this, doesn’t it? I’ll have a look in the morning.