With this data pack, you can set a specific game mode for the entire world/server or for a specific dimension. Only admins can change the settings. To prevent a specific player or group of players from changing the game mode, assign them the tag notgeneralgamemode.
List of commands: Grant access to change the game mode /tag @s add op
Prevent a player from changing the game mode /tag add notgeneralgamemode
Open the game mode and dimension selection menu /trigger Modify_GGamemode

