MV Yanfly custom leave effect (state) ATB bug

I'm trying to get a custom Jump effect working like this plug in here.|http://www.yanfly.moe/wiki/Jump_(MV_Plugin_Tips_&_Tricks)
but there is an issue getting the landing part to work.
I found out that there is a native issue with MV where you cannot use force action as a script so I tried calling it from a common event.
Code:
<cgmvencyclopediahide>
// Selection Control
<Cannot Select: All>

// Buffs & States Core
<Custom Leave Effect>
// Get the landing skill.
$gameTemp.reserveCommonEvent(30);
</Custom Leave Effect>
The weird issue is that this will not work unless the turns applied for the state are at exactly 2.
Not 1, not 3, but 2.
The other issue is that when the landing skill is activated, the move dosen't come out until the ATB gauge for the user is at the same spot as it was when the battle started.
On top of that, enemies can still get an attack out after they die by this move.
Any thoughts on how to fix this issue would be appriciated.

1640366972742.png
1640366994149.png
I found out that there is a native issue with MV where you cannot use force action as a script so I tried calling it from a common event.
...
The weird issue is that this will not work unless the turns applied for the state are at exactly 2.
Not 1, not 3, but 2.
...
On top of that, enemies can still get an attack out after they die by this move.
All of this sounds weird and not right. Where did you find out about this native issue? The force action method that Yanfly calls in the Tip and Trick is exactly the same code that the common event command would call, so I don't see how that could make any difference. Plus, you can see it work in the demo video. When you use it, what happens instead?

The number of turns shouldn't make any difference - when you say it "will not work," again, what happens instead? The remove effect doesn't know how long the state has been around. And, of course, the enemy attacking after dying is incorrect behavior.

Basically, this smells of plugins not being set up correctly, or conflicting with something. From what I can see in your screenshot, it looks like your Yanfly plugins are in the correct order; but from the scroll bar there's obviously much more in your project.

-Make sure everything is in the right order, and make sure they're all the latest version.
-Check that your MV project version is 1.6.2.
-Turn off all plugins except those required by Jump.
-Replace the Jump code with exactly what Yanfly provided.
-Try it in a new project.
Turns out it was an issue with Hime commen event queue plugin.
And where it was placed. I guess it needs to go before yanfly plugins to run.
This thread can be closed.
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-custom-leave-effect-state-atb-bug.143282/