Fixes to rank command

Checks if you can target the player