A man given a suspended prison sentence for taking part in a group revenge attack risked being jailed after missing unpaid work.