he is asking for a edited /give command, to where you can only give yourself an item if its usable by your class. (i think)
its 100% necessary, no reason for a warrior to /give itself a Doom Bow, don't ya think?
@ op if you are just simply asking how to prevent items from going in the wrong slot, then look for
in the give command
change 0 to 4
if you were asking how to do the first thing i said, just let me know and i will try to make the command, pc pretty shit though don't see myself even touching visual studio anytime soon though.