Check argument is an integer before parsing it as one.

For some commands, there is no check the argument is an integer. This causes exceptions within the console, and the player using the commands simply gets An error occurred as a response.