What exact command can I put in a command block to set all players to Adventure Mode?



  • I need everyone playing the map to be automatically set to adventure mode. How? What is the command?



  • Unfortunately, there is no real command to set everyone to a gamemode. You would have to have a command block with the command:

    /gamemode 2
    

    And then have all the players hit a button or something to activate the block when they spawn. You could, perhaps, have a spawn room with an iron door, and hook the button to open the door up to a command block.

    EDIT: Apparently you can also use

    /gamemode 2 @a
    

    To set all players to gamemode 2 (adventure mode).



Suggested Topics