Christopher Holland was given the restraining order by magistrates after he admitted sending threatening messages.