Function getPlayerDataById