All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It seems -Allaah Knows best- that the saying of a husband to his wife "consider yourself divorced…" is a metaphor among the metaphors of divorce. In your case, your husband made a conditional divorce on you wearing Niqaab (face cover) with one of the metaphors of divorce. In this case, divorce is not effective unless your husband's intention was to divorce you.
If one makes a condition for divorce, then the divorce occurs if the condition is met; this is the opinion of the majority of the scholars and in Islamweb, this is the view we consider to be the preponderant one.
However, some other scholars are of the opinion that if one made a conditional divorce and his purpose was to warn his wife, then divorce does not occur even if the condition is met.
Of course, all the above details are considered if a husband intended divorce using such expressions.
However, if he did not intend divorce, then divorce is not effective according to all the jurists.
Finally, it shoud be noted that it is more appropriate to consult one of the Islamic Centers in your country as it is more appropriate for them to study such matters.
Allaah Knows best.