jcornwellshiel/uvvillagers — pull request #48 by Tsubashi (2013-12-16 02:11:42+00:00)
Title: 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. .