Minecraft wiki entry for Development_versions, associated text: Added an "Open to LAN" menu in the in-game menu, which allows players to open their world to other players.
In the menu, the player can choose to turn commands on or off, and choose the game mode.