Change CommandSender check in history and check commands.
Merge pull request #42 from ks07/master

ClassCastException when dealing with alternate CommandSender implementations