Level up message event handler

Hello all!

Sorry for bothering, but I can’t find anywhere if there is any event listener for level up interface. Because the bot i created seems to be stuck when i hit level up and the interface, which congratulates you appears. Is there a way to check if that interface is open and press spacebar to continue for example?

Thanks in advance!

I’ve created this code but not sure if it’s optimal and works in every situation…

Interfaces class. But based on what you’re saying your logic is wrong. If the level up interface is present then you aren’t doing your designated action, so your account should restart its activity.