This topic is a quick guide to making a class system with command blocks.
Class maps are maps where you choose a class and you get the equipment each class has to offer, common in minigames or P-V-P maps. An example is TF2.
HOW TO USE
Create the buttons or activators for each class and link them to command blocks. Inside the command blocks put /give @p [ITEM ID] [AMOUNT]. Add as many items as you want for your map. Then, link ALL of the redstone lines to the main command block , which you will put /tp @p [x cord] [y cord] [z cord], which will teleport them to wherever your game is located. To create a "Change Class" button, simply connect it with 2 command blocks. One teleports you back to the start and the other you put /clear @p to clear the inventory of the player.