question

hulosowanie7 avatar image
hulosowanie7 asked

How to Ban User through CloudScript

Hey.

How can I ban the player using CloudScript?

I have made script like that:

but I am getting error like:

can someone help me?

apisCloudScript
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

·
Gosen Gao avatar image
Gosen Gao answered

According to Account Management - Ban Users - REST API (PlayFab Server) | Microsoft Docs, the request should be like:

server.BanUsers({Bans:[{PlayFabId:currentPlayerId,Reason:"No reason"}]})
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.