question

halpar avatar image
halpar asked

Can Playfab Server know the PlayFabIDs of the connected players?

I am trying to make a server authorative game, and updates the players ranks once the game is over. But I am not sure how to get players PlayFabIds.

Player DataCustom Game Servers
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

You can get initial players via GetInitialPlayers() function from PlayFabMultiplayerAgentAPI, however, in the common scenario, it is recommended to ask any connected client for their session ticket/entity token so that the server build can call AuthenticateSessionTicket API or ValidateEntityToken API to make sure this client is in the list of SessionConfig.InitialPlayers (returned by GetInitialPlayers()).

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.