So why it returns the pID? If pID returned player Name must be returned too! not player name will be null.
player id is allocated by server, not by client. Server has allocated their ID before they have really connected.
As of this time, client has not sent their name.