         allEnabled: false
         enabledPlayerId: player.playerId
         message: player.name
+
   else
     # Show a message indicating the were no players to enable.
     Rooms.upsert


# Player documents
#
#   isEnabled {Boolean} If true, the player can use their controller.
#
#   isMaster {Boolean} If true, the player can always use their

      $unset:
        enabledPlayerId: ''

  Players.update
    allEnabled: true
    roomId: roomId
  ,
    $set:
      allEnabled: false
  ,
    multi: true


enableAllPlayers = (roomId) ->
  Players.update
    roomId: roomId
  ,
    $set:
      allEnabled: true
      isEnabled: true
  ,
    multi: true
