Subclass Dedicated to Primary Class

Hello, I am brand new to the RPG maker series and just started my first project a few days ago. I am currently working with RPG Maker MV and Yanflys plugins and I wanted to know how I could limit subclasses to only be available to specific main classes so that for example only a warrior, would have access to a barbarian subclass or knight subclass.

I am still learning to use this program and I am not very experienced with scripting so any help is greatly appreciated!
I have moved this to Plugin Support under the assumption that you are using one of Yanfly's plugins to create the subclasses. If I am wrong, please let me know.
I have moved this to Plugin Support under the assumption that you are using one of Yanfly's plugins to create the subclasses. If I am wrong, please let me know.
Yes I am using yanfly's plugins, thank you for moving the thread.

Original thread: https://forums.rpgmakerweb.com/threads/subclass-dedicated-to-primary-class.119688/