Change CommandSender check in history and check commands.