question

Dmitry Statsenko avatar image
Dmitry Statsenko asked

Is there a PlayStream Event for player ban revoking?

I want to add the tag "banned" to banned players, but it should be removed after the ban revoke/expiration. How can I do it? Is there a PlayStream Event for player ban revoking?

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

·
Sarah Zhang avatar image
Sarah Zhang answered

No built-in Play Stream event will be generated when players’ ban is revoked or expired. You would need to check the player’s ban status on batches to determine if you need to remove the tag.

Since you have added the tag – “banned” for players, you can create a new Segment for the players who have the “banned” tag, then set up a Scheduled Task to check banned statuses for these players at regular intervals. You can call the API GetUserBans on Cloud Script to check the banned status. If the response shows the ban is unactive, you can call the API RemovePlayerTag to remove the “banned” tag for them.

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.