question

longchau avatar image
longchau asked

How to know when leaderboard reset? And If I want to push notify when leaderboard reset or call API to reset leaderboard, what should I do?

I'm working with leaderboard.

In my project, I want to reset my leaderboard monthly, and when it reset, I want to give award to player. But i dont know when and how leaderboard reset. If I do it by myself, I want to player know it too.

So, do anyone know how to do it? and What is API to do it?

Thank you very much.

apisLeaderboards and Statistics
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

·
brendan avatar image
brendan answered

Daily, weekly, and monthly leaderboard resets occur at 00:00 UTC. If you want to reset leaderboards yourself, you can use this Admin API call: https://api.playfab.com/documentation/admin/method/IncrementPlayerStatisticVersion. There's much more information on all this in our guide to using statistics and leaderboards, here: https://api.playfab.com/docs/tutorials/landing-tournaments/using-resettable-statistics-and-leaderboards.

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]