CanaryLib port of sk89q's CommandHelper.