question

tbaas avatar image
tbaas asked

Banned user is still able to CreateMatchmakingTicket

Hi!

We are trying to use the Ban feature in PlayFab, but if we ban a player after their connection, they can still create a matchmaking ticket and be matched with others.

Is there any way to prevent a banned user from using the Matchmaking Api?

Thanks a lot for your help!

Matchmaking
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

·
Neils Shi avatar image
Neils Shi answered

Since banning a player does not immediately expire the player's existing entity token, if you ban a player after he has connected, he can still use the entity token obtained from the previous login to create the matchmaking ticket (until the entity token expires and he needs to log in again). You can let players call any Client API to check if player is banned before they create matchmaking ticket each time (banned player will receive an error message "The account making this request is currently banned" when calling the Client API). If the player is banned, you can clear the player's existing entity token to prevent the player from creating a matchmaking ticket while banned.

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.