Unjustly has 2 different meanings across 1 category:
Adverb
in an unjust manner
"he was unjustly singled out for punishment"
In an unjust manner.