Added team check to commands