Casting to Game Mode for a item pickup blueprint

The informations you want to save belong into the playerController or into the playerState. the information how much gems a pickup gives you, belongs into the pickupActor itself. If you do multiplayer and want to have a central place to track the stats on the server use the gameState for that. The gamemode should represent the “rules of the game”. So if you have some central rules - like “I need to capture the flag to get a point” - rules and logic belongs into the gamemode. it is only available on the server - keep that in mind.