Skip to content

v24.05.06: Statistic leaderboards and rotations

Latest
Compare
Choose a tag to compare
@kezz kezz released this 10 May 17:55
b7359b2

What's Changed

✨ Features

  • Added rotations via the Rotation enum.
    • These represent the periods in which statistics (as well as other parts of the server) rotate.
    • The methods nextRotation and previousRotation can be used to extract information about when these rotations change.
  • Added rotationValue on Statistics for fetching the value of a statistic in a given rotation.
  • Added statistic query to fetch a statistic by it's key.
  • Added statistic leaderboards.
    • These can be queried using the leaderboard method on Statistic.
    • The returned list contains the rank and value of each entry in the leaderboard.
    • The amount field is limited to 20.

🔧 Changes

  • The value method on Statistics has been deprecated for removal. Use the rotationValue method instead.
  • Four new statistics have been added: crown_level, trophies, trophies_skill and trophies_style.

Full Changelog: v24.05.02...v24.05.06