pocketmine\Player::awardAchievement ( $achievementId ) https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Achievement.php#L34-L105