In minecraft, how to make everyone in gamemode 1 except yourself gamemode 2

//ads -- adsterra.com -- native banner
?>
I'm trying to make a minecraft map and to prevent cheating i want to run a command on a clock that sets everyone in creative mode except myself back to adventure mode.
Pictures about "In minecraft, how to make everyone in gamemode 1 except yourself gamemode 2"



How do you set creative mode to one person?
You can use the /gamemode command to change between game modes at any time (Creative, Survival, Adventure or Spectator) for a Minecraft world.Using Commands in Minecraft: Getting Started and the /gamemode Command [/gamemode 1,2,3,\u00264] | 1.11.2
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Yan Krukov, Anna Shvets, Monstera, Andrea Piacquadio