Moved CommandPermission into the API.