Player player; //The player you want to award your achievement with
Achievement achievement; //The achievement you want to award your player
player.awardAchievement(achievement); //Awarding the achievement
Checking if player has achievement:
Player player;
Achievement achievement...