title: How to force a gamemode in minecraft mod?
body: <p>I am making this private modpack in Minecraft. It's all ready, but I need help with making a mod that forces all players to be in gamemode 2 (adventure mode), or just make players unable to place/destroy blocks. How can I make a mod like that?</p>
  
  <p>This is no online server, it is just meant to be in my mod<em>pack</em> in singleplayer. (modpack is a collection of several mods). It is an apocalypse modpack, where players must raid houses, kill NPC players, hide during night etc. This is why I want the player who creates the world, automatically gets set to gamemode 2 (or atleast isn't able to build/destroy). NOTE: I have not created a single mod before, I did not make the mods in my modpack.</p>