This is just a neat little device to show off that you can use to prevent
Players who download your map from cheating by changing there gamemode.
This will lock players into what gamemode you want them to be in until they complete your map.At which point, you can simply do: /setblock ~ ~ ~ at the block in the center
to stop if from working.
The download is in 1.10's structure block style.
All ya need to do to use this is:
/give @p minecraft:structure_block 1
Then set it to load: "gamemode_tester" or whatever you want to call it.

Then place the download file below into your .minecraft structures file for the map your wanting to put this in. Instructions on how to use it or in the chest that comes with the structure.

Download Link: https://www.dropbox.com/s/hpifem189neqs4t/gamemode_tester.nbt?dl=0

Youtube or Pictures:
2016-11-23_15493310672845.png

2016-11-23_15490710672843.png