@dendotdev/grunt 1.0.6 → 1.0.7

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.
package/dist/index.mjs CHANGED
@@ -1194,20 +1194,17 @@ var EconomyModule = class extends ModuleBase {
1194
1194
  );
1195
1195
  }
1196
1196
  /**
1197
- * Get career rank for players.
1197
+ * Get career rank for a player.
1198
1198
  *
1199
- * @param playerIds - List of player XUIDs
1199
+ * @param player - Player's numeric XUID
1200
1200
  * @param careerPathId - Career path identifier
1201
- * @returns Career rank results
1201
+ * @returns Reward track with career rank progress
1202
1202
  */
1203
- getPlayerCareerRank(playerIds, careerPathId) {
1204
- if (!playerIds.length) {
1205
- throw new Error("playerIds cannot be empty");
1206
- }
1203
+ getPlayerCareerRank(player, careerPathId) {
1204
+ this.assertNotEmpty(player, "player");
1207
1205
  this.assertNotEmpty(careerPathId, "careerPathId");
1208
- const formattedPlayerList = playerIds.map((id) => `xuid(${id})`).join(",");
1209
1206
  return this.get(
1210
- `/hi/careerranks/${careerPathId}?players=${formattedPlayerList}`,
1207
+ `/hi/players/xuid(${player})/rewardtracks/careerranks/${careerPathId}`,
1211
1208
  { useClearance: true }
1212
1209
  );
1213
1210
  }