How do I make jump sustain with the Physics behaviour?

Hi there! I’m in the process of making a boss fight, and I’ve run into an issue. I need to make minimum and maximum jump sustain times in order for the player (which is using a Physics behaviour) to avoid attacks. As far as I know, this is not possible. Does anyone else know how to do this?