Does LeaderboardService.RemovePlayerScore revert rewards?
Unsolved
Cloud Code
-
Hello,
I'm working on a system to purge tournament records of fraudulent players.
If I call LeaderboardService.RemovePlayerScore to wipe a player's entry, does the service also handle the reversal of rewards (or update their reward status) linked to that specific score? Or do I need to manually handle the reward adjustment?
Thank you in advance!
-
No,
RemovePlayerScore()does NOT handle reward reversals. You need to handle that manually. Also note that if the leaderboard is configured for a tournament, it will throw an exception and refuse to remove the score. CallLeaveTournament()for a tournament-based leaderboard, but it does not reverse rewards either.