How Do I Implement Class-Exclusive Weapons (Not Weapon Types)?

For example, let's say we have the "hero" class and the "swordmaster class" for my game; the hero can use every type of weapon present in the game but can't use every weapon from that type whereas the swordmaster can only use swords but can use every weapon under the sword category. Maybe the Hero can wield from a bronze sword up to a silver sword while the Swordmaster can wield those swords and more like a Claymore and Flamberge.
Yanfly made an Item Requirements plugin.

http://www.yanfly.moe/wiki/Item_Requirements_(YEP)
Ah, thank you so much.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-implement-class-exclusive-weapons-not-weapon-types.115671/