Java - How to force a gamemode in minecraft mod? : So, I am making this private modpack in Minecraft. It all is ready, but I need help with making a mod: It forces all players to be in gamemode 2 (adventure mode), or just make players unable to place/destroy blocks. I am not good in java, how can I make a mod like that? Any help is appreciated.