I have an idea for how players can get items in the temple game: Just have a tripwire, pressure plate with a command block spawning the item Same thing goes for who wins the parkour map. At the end there is a pressure plate with 2 command blocks. one spawns everyone back to spawn, and the other shouts out "[Player] Has won the parkour game!" Not sure if the tping players back to spawn would work but im pretty sure you guys will be able to figure out something!

For saying [Player] has won the parkour game!] The command would just be: /say @p Has won the parkour game!