In the spacetime induced by a rotating cosmic string we compute the energy levels of a massive spinless particle coupled covariantly to a homogeneous magnetic field parallel to the string. Afterwards, we consider the addition of a scalar potential with a Coulomb-type and a linear confining term and completely solve the Klein-Gordon equations for each configuration. Finally, assuming rigid-wall boundary conditions, we find the Landau levels when the linear defect is itself magnetized. Remarkably, our analysis reveals that the Landau quantization occurs even in the absence of gauge fields provided the string is endowed with spin.