hive-bedrock-api 3.0.0-alpha.19 → 3.0.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -242,7 +242,10 @@ export type AdditionalStatistics<T extends Timeframe, L extends boolean> = (T ex
242
242
  level: number;
243
243
  } & (L extends true ? {} : {
244
244
  first_played: number;
245
- }) : {}) & (L extends true ? {
245
+ }) : {
246
+ position: number;
247
+ username: string;
248
+ }) & (L extends true ? {
246
249
  position: number;
247
250
  username: string;
248
251
  UUID: string;
@@ -43,9 +43,9 @@ function processGame(game, timeframe, isLeaderboard, response) {
43
43
  data.level = (_a = (0, hive_bedrock_data_1.calculateLevelFromXP)(data.xp, game)) !== null && _a !== void 0 ? _a : 1;
44
44
  if (timeframe === hive_bedrock_data_1.Timeframe.AllTime && "first_played" in response)
45
45
  data.first_played = response.first_played;
46
- if (isLeaderboard && data.id !== hive_bedrock_data_1.Game.ParkourWorlds)
46
+ if ((isLeaderboard || timeframe === hive_bedrock_data_1.Timeframe.Monthly) && data.id !== hive_bedrock_data_1.Game.ParkourWorlds)
47
47
  data.position = response.human_index;
48
- if (isLeaderboard && data.id !== hive_bedrock_data_1.Game.ParkourWorlds)
48
+ if ((isLeaderboard || timeframe === hive_bedrock_data_1.Timeframe.Monthly) && data.id !== hive_bedrock_data_1.Game.ParkourWorlds)
49
49
  data.username = response.username;
50
50
  if (isLeaderboard && data.id !== hive_bedrock_data_1.Game.ParkourWorlds)
51
51
  data.UUID = response.UUID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hive-bedrock-api",
3
- "version": "3.0.0-alpha.19",
3
+ "version": "3.0.0-alpha.20",
4
4
  "description": "An API wrapper for the Hive Minecraft Bedrock Edition server.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",