Fixed potential problem

- CommandSender is no longer null so I changed it to test against the
Player class