How to make only certain characters use specific items

So I have looked all over for plugins or guides to figure out how to make a specific character or class able to use specific items, I know that it should be possible to as RPG maker 2k3 had that built in. Does anyone know how to be able to do that?
Maybe there’s a plugin out there that could do it more seamlessly, but perhaps you could do it without any plugin:
Make the item run a common event with a conditional check to check the actor that consumed the item (Control Variables > Game Data >Last> Actor ID), and if it doesn’t equal the allowed actor(s), display a message/play a sound and add the item back to the inventory. The other branch of the conditional would just be the item working as normal.
Yanfly's Item Core Plugin might do what you need or YEP Item Requirements. I would look at those.
@lockhowl Those are plugins for RPG Maker MV, this is posted in MZ support.

There have been kind of a bunch of threads about this - @Aerosys has a plugin for it.

@lockhowl Those are plugins for RPG Maker MV, this is posted in MZ support.

There have been kind of a bunch of threads about this - @Aerosys has a plugin for it.

I tested it out and that is exactly what I've been looking for, thank you so much

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-only-certain-characters-use-specific-items.171987/