Refactor onCommand

The onCommand Function had a lot of duplicated code segments and extra if/else checks that hampered its' readability. Fixed by factoring out the most common checks, deleting copypasta, and utilizing a switch statement. .
Misc. Fixes

Fixed a few errors I made in refactoring where a console would be allowed to run commands that required location. Also added in functionality that had accidentally been removed where a console command would run differently than a player command. Also changed the version to include -dev to differentiate from releases.
Merge pull request #48 from Tsubashi/master

Refactor onCommand