Forum Multiplayer Leaderboards server-side access

Discussion and help relating to the PlayerIO Multiplayer API.

Leaderboards server-side access

Postby Elezak » May 10th, 2020, 10:19 am

Hi,

The new Leaderboards feature looks quite promising and is exactly what we need. But I can't seem to find a way to post the scores to the leaderboard on behalf of the player (for security reasons). I can see the "Leaderboards" class, but there doesn't seem to be a way to access the function as mentioned on this page https://playerio.com/documentation/reference/multiplayer/playerio.gamelibrary.leaderboards

Is this feature client-side only?
Elezak
 
Posts: 3
Joined: May 2nd, 2020, 8:03 am

Re: Leaderboards server-side access

Postby Elezak » May 13th, 2020, 6:32 am

On second look, "Leaderboards" seems to be an abstract class! Does this mean we have to write our own implementation using BigDB to use this feature server-side?
Elezak
 
Posts: 3
Joined: May 2nd, 2020, 8:03 am

Re: Leaderboards server-side access

Postby azuanagames » May 22nd, 2020, 1:30 am

You get Leaderboards from your player object. As in:

Code: Select all
public override void UserJoined(Player player)  {
  player.Leaderboards.Set(...)
}
azuanagames
 
Posts: 157
Joined: April 29th, 2010, 10:59 pm

Re: Leaderboards server-side access

Postby Elezak » May 22nd, 2020, 2:04 pm

Wow.. I did not think of that. Thanks a lot.
I feel so stupid now. :lol:
Elezak
 
Posts: 3
Joined: May 2nd, 2020, 8:03 am


Return to Multiplayer