Fully Heal upon level up?

Is there an in-function function to full restore a user's HP and MP (do not remove states) when they level up? I've tried searching the forum for this but I'm getting a lot of bloat with the words I use to search.
I know there are plugins with this feature, but if you're interested in doing it without a plugin, I'm not sure how to go about it. I've included a link to one such plugin below.

HIME has a levelUP plugin, but you can also event one.
and do whatever you like to do.

so there are 2 ways for it.
pure evented way is to check current player level,
on battle end you check if the player has been leveled,
if so, restore hp +9999, MP +9999
otherwise, nothing happens.

if you want to take a step further, HIME Level up plugin can help you
on it as well, as it also goes through common event (require common event queue)
which you can set in the actor note tag which common event to run once they level
up and easier to control.

there are more plugins like Shaz Heal on Level Up which can do only HP, MP or states.
but I dont know how that one work, as there might be more, but you need to check
which works best for you.
Awesome, thank you both for your answers! This is perfect!

Original thread: https://forums.rpgmakerweb.com/threads/fully-heal-upon-level-up.153354/