The former Scotland rugby captain was given a community payback order after he admitted domestic abuse.