Man sentenced after hitting another with brick in Maryborough