hypixel-api-reborn 11.2.0 → 11.2.1

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.
Files changed (84) hide show
  1. package/README.md +1 -1
  2. package/eslint.config.mjs +71 -0
  3. package/package.json +11 -17
  4. package/src/API/getAchievements.js +1 -0
  5. package/src/API/getBoosters.js +1 -0
  6. package/src/API/getChallenges.js +1 -0
  7. package/src/API/getGameCounts.js +1 -0
  8. package/src/API/getGuild.js +4 -3
  9. package/src/API/getGuildAchievements.js +1 -0
  10. package/src/API/getLeaderboards.js +1 -1
  11. package/src/API/getPlayer.js +1 -0
  12. package/src/API/getQuests.js +1 -0
  13. package/src/API/getRecentGames.js +5 -9
  14. package/src/API/getServerInfo.js +40 -37
  15. package/src/API/getStatus.js +1 -0
  16. package/src/API/getWatchdogStats.js +1 -0
  17. package/src/API/skyblock/getAuction.js +8 -6
  18. package/src/API/skyblock/getAuctions.js +15 -12
  19. package/src/API/skyblock/getAuctionsByPlayer.js +1 -1
  20. package/src/API/skyblock/getBazaar.js +1 -3
  21. package/src/API/skyblock/getBingo.js +1 -2
  22. package/src/API/skyblock/getBingoByPlayer.js +3 -3
  23. package/src/API/skyblock/getEndedAuctions.js +1 -0
  24. package/src/API/skyblock/getFireSales.js +1 -1
  25. package/src/API/skyblock/getGovernment.js +1 -2
  26. package/src/API/skyblock/getMember.js +1 -0
  27. package/src/API/skyblock/getMuseum.js +1 -0
  28. package/src/API/skyblock/getNews.js +1 -0
  29. package/src/API/skyblock/getProfiles.js +1 -0
  30. package/src/Client.js +42 -14
  31. package/src/Private/rateLimit.js +7 -11
  32. package/src/Private/requests.js +11 -12
  33. package/src/Private/updater.js +2 -3
  34. package/src/Private/uuidCache.js +1 -2
  35. package/src/Private/validate.js +19 -19
  36. package/src/structures/APIIncident.js +1 -2
  37. package/src/structures/APIStatus.js +0 -1
  38. package/src/structures/Boosters/Booster.js +9 -8
  39. package/src/structures/Game.js +1 -1
  40. package/src/structures/Guild/Guild.js +19 -36
  41. package/src/structures/Guild/GuildMember.js +2 -2
  42. package/src/structures/MiniGames/Arcade.js +242 -240
  43. package/src/structures/MiniGames/ArenaBrawl.js +11 -11
  44. package/src/structures/MiniGames/BedWars.js +197 -194
  45. package/src/structures/MiniGames/BlitzSurvivalGames.js +24 -23
  46. package/src/structures/MiniGames/CopsAndCrims.js +1 -0
  47. package/src/structures/MiniGames/Duels.js +9 -11
  48. package/src/structures/MiniGames/Pit.js +4 -5
  49. package/src/structures/MiniGames/SkyWars.js +197 -186
  50. package/src/structures/MiniGames/SmashHeroes.js +36 -34
  51. package/src/structures/MiniGames/SpeedUHC.js +17 -4
  52. package/src/structures/MiniGames/UHC.js +26 -25
  53. package/src/structures/MiniGames/WoolWars.js +6 -5
  54. package/src/structures/Pet.js +1 -1
  55. package/src/structures/Player.js +13 -104
  56. package/src/structures/PlayerCosmetics.js +5 -4
  57. package/src/structures/SkyBlock/Auctions/AuctionInfo.js +2 -1
  58. package/src/structures/SkyBlock/Auctions/BaseAuction.js +1 -1
  59. package/src/structures/SkyBlock/News/SkyblockNews.js +15 -15
  60. package/src/structures/SkyBlock/PlayerBingo.js +7 -14
  61. package/src/structures/SkyBlock/SkyblockInventoryItem.js +4 -28
  62. package/src/structures/SkyBlock/SkyblockMember.js +78 -223
  63. package/src/structures/SkyBlock/SkyblockPet.js +3 -4
  64. package/src/structures/SkyBlock/Static/Bingo.js +10 -11
  65. package/src/structures/SkyBlock/Static/BingoData.js +1 -1
  66. package/src/structures/Static/Achievement.js +16 -15
  67. package/src/structures/Static/AchievementTier.js +2 -2
  68. package/src/structures/Static/Quest.js +2 -2
  69. package/src/utils/Constants.js +17 -517
  70. package/src/utils/{guildExp.js → Guild.js} +42 -12
  71. package/src/utils/Player.js +112 -0
  72. package/src/utils/SkyblockUtils.js +449 -192
  73. package/src/utils/arrayTools.js +1 -1
  74. package/src/utils/divide.js +1 -1
  75. package/src/utils/index.js +2 -1
  76. package/src/utils/isGuildID.js +1 -1
  77. package/src/utils/oscillation.js +4 -2
  78. package/src/utils/removeSnakeCase.js +11 -7
  79. package/src/utils/rgbToHexColor.js +1 -1
  80. package/src/utils/romanize.js +3 -3
  81. package/src/utils/toUuid.js +4 -4
  82. package/src/utils/varInt.js +2 -2
  83. package/typings/index.d.ts +272 -162
  84. package/src/utils/toIGN.js +0 -24
@@ -1,13 +1,15 @@
1
1
  // See https://github.com/HypixelDev/PublicAPI/blob/db26b5fd3b7bb29da14e40e6d211143ec44a4519/Documentation/misc/Oscillation.md
2
2
  // Month oscillation started in December 2014, so every month that is pair ( odd in js!! ) is month A
3
3
  // Weekly oscillation started... just refer to the code in the docs
4
- // eslint-disable-next-line require-jsdoc
4
+
5
+ // eslint-disable-next-line jsdoc/require-jsdoc
5
6
  function monthAB(date = Date.now()) {
6
7
  return new Date(date).getMonth() % 2 ? 'a' : 'b';
7
8
  }
8
9
 
9
10
  const weeklyOscillationStart = 1417237200000;
10
- // eslint-disable-next-line require-jsdoc
11
+
12
+ // eslint-disable-next-line jsdoc/require-jsdoc
11
13
  function weekAB(date = Date.now()) {
12
14
  return (Math.abs(new Date(date).getTime() - weeklyOscillationStart) / 604800000) % 2 ? 'a' : 'b';
13
15
  }
@@ -1,11 +1,13 @@
1
- // eslint-disable-next-line require-jsdoc
2
- const single = (obj) =>
1
+ const single = (obj) => {
3
2
  Object.keys(obj).reduce((pV, cV) => ({ ...pV, [cV.replace(/_[a-z]/gi, (x) => x[1].toUpperCase())]: obj[cV] }), {});
4
- // eslint-disable-next-line require-jsdoc
3
+ };
4
+
5
+ // eslint-disable-next-line jsdoc/require-jsdoc
5
6
  function validateJSON(obj) {
6
- return typeof obj === 'object' && JSON.stringify(obj)[0] === '{';
7
+ return 'object' === typeof obj && '{' === JSON.stringify(obj)[0];
7
8
  }
8
- // eslint-disable-next-line require-jsdoc
9
+
10
+ // eslint-disable-next-line jsdoc/require-jsdoc
9
11
  function recursive(obj, lowerCase = false) {
10
12
  if (!validateJSON(obj)) return obj;
11
13
  return Object.keys(obj).reduce(
@@ -16,11 +18,13 @@ function recursive(obj, lowerCase = false) {
16
18
  {}
17
19
  );
18
20
  }
19
- // eslint-disable-next-line require-jsdoc
21
+
22
+ // eslint-disable-next-line jsdoc/require-jsdoc
20
23
  function removeSnakeCaseString(str) {
21
- if (typeof str !== 'string') return null;
24
+ if ('string' !== typeof str) return null;
22
25
  return str.toLowerCase().replace(/_[a-z]/gi, (x) => x[1].toUpperCase());
23
26
  }
27
+
24
28
  module.exports = {
25
29
  single,
26
30
  recursive,
@@ -2,7 +2,7 @@ module.exports = (rgb) => {
2
2
  let hexCode = '#';
3
3
  for (const num of rgb) {
4
4
  const hex = Number(num).toString(16);
5
- hexCode += hex.length === 1 ? '0' + hex : hex;
5
+ hexCode += 1 === hex.length ? '0' + hex : hex;
6
6
  }
7
7
  return hexCode;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  module.exports = (num) => {
2
2
  if (isNaN(num)) return NaN;
3
- const digits = String(+num).split('');
3
+ const digits = String(Number(num)).split('');
4
4
  const key = [
5
5
  '',
6
6
  'C',
@@ -36,7 +36,7 @@ module.exports = (num) => {
36
36
  let roman = '';
37
37
  let i = 3;
38
38
  while (i--) {
39
- roman = (key[+digits.pop() + i * 10] || '') + roman;
39
+ roman = (key[Number(digits.pop()) + i * 10] || '') + roman;
40
40
  }
41
- return Array(+digits.join('') + 1).join('M') + roman;
41
+ return Array(Number(digits.join('')) + 1).join('M') + roman;
42
42
  };
@@ -4,15 +4,15 @@ const Errors = require('../Errors');
4
4
 
5
5
  module.exports = async (input, cacheTime = 600, useThirdPartyAPI = '') => {
6
6
  if (!input) throw new Error(Errors.NO_NICKNAME_UUID);
7
- if (typeof input !== 'string') throw new Error(Errors.UUID_NICKNAME_MUST_BE_A_STRING);
7
+ if ('string' !== typeof input) throw new Error(Errors.UUID_NICKNAME_MUST_BE_A_STRING);
8
8
  if (isUUID(input)) return input.replace(/-/g, '');
9
9
  try {
10
- const customUrl = useThirdPartyAPI === true ? 'https://api.minetools.eu/uuid/' : useThirdPartyAPI;
10
+ const customUrl = true === useThirdPartyAPI ? 'https://api.minetools.eu/uuid/' : useThirdPartyAPI;
11
11
  const url = useThirdPartyAPI ? `${customUrl}${input}` : `https://mowojang.matdoes.dev/${input}`;
12
12
  const res = await fetch(url, input, cacheTime);
13
- if (res.status === 404) {
13
+ if (404 === res.status) {
14
14
  return Promise.reject(new Error(Errors.PLAYER_DOES_NOT_EXIST));
15
- } else if (res.status !== 200) {
15
+ } else if (200 !== res.status) {
16
16
  throw new Error('Unknown Error whilst retrieving player information');
17
17
  }
18
18
  return res.id;
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line require-jsdoc
1
+ // eslint-disable-next-line jsdoc/require-jsdoc
2
2
  function readVarInt(bytes) {
3
3
  let numRead = 0;
4
4
  let result = 0;
@@ -7,7 +7,7 @@ function readVarInt(bytes) {
7
7
  const value = read & 0b01111111;
8
8
  result |= value << (7 * numRead);
9
9
  numRead++;
10
- if (numRead > 5) {
10
+ if (5 < numRead) {
11
11
  return NaN;
12
12
  }
13
13
  } while (numRead < bytes.length);
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable indent */
2
2
  /* eslint-disable max-len */
3
3
  /* eslint-disable camelcase */
4
- /* eslint-disable require-jsdoc */
4
+ /* eslint-disable jsdoc/require-jsdoc */
5
5
  // Minimum TypeScript Version: 3.6
6
6
 
7
7
  import { NetworthResult } from 'skyhelper-networth';
@@ -410,8 +410,7 @@ declare module 'hypixel-api-reborn' {
410
410
  strToArray(input: string): string[];
411
411
  };
412
412
  Constants: {
413
- skyblock_year_0: 1.5602757e12;
414
- duels_divisions: [
413
+ duelsDivisions: [
415
414
  { name: 'Rookie'; key: 'rookie' },
416
415
  { name: 'Iron'; key: 'iron' },
417
416
  { name: 'Gold'; key: 'gold' },
@@ -424,7 +423,7 @@ declare module 'hypixel-api-reborn' {
424
423
  { name: 'WORLD MASTER'; key: 'world_master' },
425
424
  { name: "WORLD'S BEST"; key: 'worlds_best' }
426
425
  ];
427
- leveling_xp: {
426
+ levelingXp: {
428
427
  1: 50;
429
428
  2: 125;
430
429
  3: 200;
@@ -476,7 +475,7 @@ declare module 'hypixel-api-reborn' {
476
475
  49: 3700000;
477
476
  50: 4000000;
478
477
  };
479
- xp_past_50: {
478
+ xpPast50: {
480
479
  51: 4300000;
481
480
  52: 4600000;
482
481
  53: 4900000;
@@ -488,7 +487,7 @@ declare module 'hypixel-api-reborn' {
488
487
  59: 6700000;
489
488
  60: 7000000;
490
489
  };
491
- runecrafting_xp: {
490
+ runecraftingXp: {
492
491
  1: 50;
493
492
  2: 100;
494
493
  3: 125;
@@ -515,29 +514,7 @@ declare module 'hypixel-api-reborn' {
515
514
  24: 15300;
516
515
  25: 19050;
517
516
  };
518
- skills: [
519
- 'farming',
520
- 'mining',
521
- 'combat',
522
- 'foraging',
523
- 'fishing',
524
- 'enchanting',
525
- 'alchemy',
526
- 'taming',
527
- 'carpentry',
528
- 'runecrafting'
529
- ];
530
- skills_achievements: {
531
- farming: 'skyblockHarvester';
532
- mining: 'skyblockExcavator';
533
- combat: 'skyblockCombat';
534
- foraging: 'skyblockGatherer';
535
- fishing: 'skyblockAngler';
536
- enchanting: 'skyblockAugmentation';
537
- alchemy: 'skyblockConcoctor';
538
- taming: 'skyblockDomesticator';
539
- };
540
- skills_cap: {
517
+ skillsCap: {
541
518
  taming: 50;
542
519
  farming: 60;
543
520
  mining: 60;
@@ -549,8 +526,9 @@ declare module 'hypixel-api-reborn' {
549
526
  carpentry: 50;
550
527
  runecrafting: 25;
551
528
  dungeons: 50;
529
+ social: 25;
552
530
  };
553
- dungeon_xp: {
531
+ dungeonXp: {
554
532
  1: 50;
555
533
  2: 75;
556
534
  3: 110;
@@ -602,18 +580,43 @@ declare module 'hypixel-api-reborn' {
602
580
  49: 9.3e7;
603
581
  50: 1.1625e8;
604
582
  };
605
- slayer_xp: {
606
- 1: 5;
607
- 2: 15;
608
- 3: 200;
609
- 4: 1000;
610
- 5: 5000;
611
- 6: 20000;
612
- 7: 100000;
613
- 8: 400000;
614
- 9: 1000000;
583
+ hotmXp: {
584
+ 1: 0;
585
+ 2: 3000;
586
+ 3: 9000;
587
+ 4: 25000;
588
+ 5: 60000;
589
+ 6: 100000;
590
+ 7: 150000;
591
+ };
592
+ socialXp: {
593
+ 1: 50;
594
+ 2: 100;
595
+ 3: 150;
596
+ 4: 250;
597
+ 5: 500;
598
+ 6: 750;
599
+ 7: 1000;
600
+ 8: 1250;
601
+ 9: 1500;
602
+ 10: 2000;
603
+ 11: 2500;
604
+ 12: 3000;
605
+ 13: 3750;
606
+ 14: 4500;
607
+ 15: 6000;
608
+ 16: 8000;
609
+ 17: 10000;
610
+ 18: 12500;
611
+ 19: 15000;
612
+ 20: 20000;
613
+ 21: 25000;
614
+ 22: 30000;
615
+ 23: 35000;
616
+ 24: 40000;
617
+ 25: 50000;
615
618
  };
616
- pet_score: {
619
+ petScore: {
617
620
  COMMON: 1;
618
621
  UNCOMMON: 2;
619
622
  RARE: 3;
@@ -621,125 +624,235 @@ declare module 'hypixel-api-reborn' {
621
624
  LEGENDARY: 5;
622
625
  MYTHIC: 6;
623
626
  };
624
- base_stats: {
625
- damage: 0;
626
- health: 100;
627
- defense: 0;
628
- effective_health: 100;
629
- strength: 0;
630
- damage_increase: 0;
631
- speed: 100;
632
- crit_chance: 20;
633
- crit_damage: 50;
634
- intelligence: 0;
635
- };
636
- stat_template: {
637
- damage: 0;
638
- health: 0;
639
- defense: 0;
640
- effective_health: 0;
641
- strength: 0;
642
- damage_increase: 0;
643
- speed: 0;
644
- crit_chance: 0;
645
- crit_damage: 0;
646
- intelligence: 0;
647
- };
648
- bonus_stats: {
649
- taming_skill: { 1: { pet_luck: 1 } };
650
- fairy_souls: {
651
- 5: { health: 3; defense: 1; strength: 1; speed: 0 };
652
- 10: { health: 3; defense: 1; strength: 1; speed: 0 };
653
- 15: { health: 4; defense: 1; strength: 1; speed: 0 };
654
- 20: { health: 4; defense: 1; strength: 1; speed: 0 };
655
- 25: { health: 5; defense: 2; strength: 2; speed: 0 };
656
- 30: { health: 5; defense: 1; strength: 1; speed: 0 };
657
- 35: { health: 6; defense: 1; strength: 1; speed: 0 };
658
- 40: { health: 6; defense: 1; strength: 1; speed: 0 };
659
- 45: { health: 7; defense: 1; strength: 1; speed: 0 };
660
- 50: { health: 7; defense: 2; strength: 2; speed: 1 };
661
- 55: { health: 8; defense: 1; strength: 1; speed: 0 };
662
- 60: { health: 8; defense: 1; strength: 1; speed: 0 };
663
- 65: { health: 9; defense: 1; strength: 1; speed: 0 };
664
- 70: { health: 9; defense: 1; strength: 1; speed: 0 };
665
- 75: { health: 10; defense: 2; strength: 2; speed: 0 };
666
- 80: { health: 10; defense: 1; strength: 1; speed: 0 };
667
- 85: { health: 11; defense: 1; strength: 1; speed: 0 };
668
- 90: { health: 11; defense: 1; strength: 1; speed: 0 };
669
- 95: { health: 12; defense: 1; strength: 1; speed: 0 };
670
- 100: { health: 12; defense: 2; strength: 2; speed: 1 };
671
- 105: { health: 13; defense: 1; strength: 1; speed: 0 };
672
- 110: { health: 13; defense: 1; strength: 1; speed: 0 };
673
- 115: { health: 14; defense: 1; strength: 1; speed: 0 };
674
- 120: { health: 14; defense: 1; strength: 1; speed: 0 };
675
- 125: { health: 15; defense: 2; strength: 2; speed: 0 };
676
- 130: { health: 15; defense: 1; strength: 1; speed: 0 };
677
- 135: { health: 16; defense: 1; strength: 1; speed: 0 };
678
- 140: { health: 16; defense: 1; strength: 1; speed: 0 };
679
- 145: { health: 17; defense: 1; strength: 1; speed: 0 };
680
- 150: { health: 17; defense: 2; strength: 2; speed: 1 };
681
- 155: { health: 18; defense: 1; strength: 1; speed: 0 };
682
- 160: { health: 18; defense: 1; strength: 1; speed: 0 };
683
- 165: { health: 19; defense: 1; strength: 1; speed: 0 };
684
- 170: { health: 19; defense: 1; strength: 1; speed: 0 };
685
- 175: { health: 20; defense: 2; strength: 2; speed: 0 };
686
- 180: { health: 20; defense: 1; strength: 1; speed: 0 };
687
- 185: { health: 21; defense: 1; strength: 1; speed: 0 };
688
- 190: { health: 21; defense: 1; strength: 1; speed: 0 };
689
- };
690
- farming_skill: {
691
- 1: { health: 2 };
692
- 15: { health: 3 };
693
- 20: { health: 4 };
694
- 26: { health: 5 };
695
- };
696
- combat_skill: { 1: { crit_chance: 0.5; damage_increase: 0.04 } };
697
- mining_skill: { 1: { defense: 1 }; 15: { defense: 2 } };
698
- foraging_skill: { 1: { strength: 1 }; 15: { strength: 2 } };
699
- fishing_skill: {
700
- 1: { health: 2 };
701
- 15: { health: 3 };
702
- 20: { health: 4 };
703
- 26: { health: 5 };
704
- };
705
- enchanting_skill: { 1: { intelligence: 1 }; 15: { intelligence: 2 } };
706
- alchemy_skill: { 1: { intelligence: 1 }; 15: { intelligence: 2 } };
707
- carpentry_skill: { 1: Record<string, never> };
708
- runecrafting_skill: { 1: Record<string, never> };
709
- zombie_slayer: {
710
- 1: { health: 2 };
711
- 3: { health: 3 };
712
- 5: { health: 4 };
713
- 7: { health: 5 };
714
- 9: { health: 6 };
715
- };
716
- spider_slayer: {
717
- 1: { crit_damage: 1 };
718
- 5: { crit_damage: 2 };
719
- 7: { crit_damage: 0; crit_chance: 1 };
720
- 8: { crit_chance: 0; crit_damage: 3 };
721
- };
722
- wolf_slayer: {
723
- 1: { speed: 1 };
724
- 2: { health: 2 };
725
- 3: { speed: 1 };
726
- 4: { health: 2 };
727
- 5: { crit_damage: 1 };
728
- 6: { health: 3 };
729
- 7: { crit_damage: 2 };
730
- 8: { speed: 1 };
731
- };
732
- enchantments: {
733
- sharpness: { 1: { damage_multiplicator: 0.05 } };
734
- ender: { 1: { damage_multiplicator: 0.12 } };
735
- giant_killer: { 1: { damage_multiplicator: 0.05 } };
736
- cubism: { 1: { damage_multiplicator: 0.1 } };
737
- impaling: { 1: { damage_multiplicator: 0.125 } };
738
- critical: { 1: { crit_damage: 10 } };
739
- first_strike: { 1: { damage_multiplicator: 0.25 } };
740
- power: { 1: { damage_multiplicator: 0.08 } };
741
- };
627
+ petRarityOffset: {
628
+ COMMON: 0;
629
+ UNCOMMON: 6;
630
+ RARE: 11;
631
+ EPIC: 16;
632
+ LEGENDARY: 20;
633
+ MYTHIC: 20;
742
634
  };
635
+ petLevels: [
636
+ 100,
637
+ 110,
638
+ 120,
639
+ 130,
640
+ 145,
641
+ 160,
642
+ 175,
643
+ 190,
644
+ 210,
645
+ 230,
646
+ 250,
647
+ 275,
648
+ 300,
649
+ 330,
650
+ 360,
651
+ 400,
652
+ 440,
653
+ 490,
654
+ 540,
655
+ 600,
656
+ 660,
657
+ 730,
658
+ 800,
659
+ 880,
660
+ 960,
661
+ 1050,
662
+ 1150,
663
+ 1260,
664
+ 1380,
665
+ 1510,
666
+ 1650,
667
+ 1800,
668
+ 1960,
669
+ 2130,
670
+ 2310,
671
+ 2500,
672
+ 2700,
673
+ 2920,
674
+ 3160,
675
+ 3420,
676
+ 3700,
677
+ 4000,
678
+ 4350,
679
+ 4750,
680
+ 5200,
681
+ 5700,
682
+ 6300,
683
+ 7000,
684
+ 7800,
685
+ 8700,
686
+ 9700,
687
+ 10800,
688
+ 12000,
689
+ 13300,
690
+ 14700,
691
+ 16200,
692
+ 17800,
693
+ 19500,
694
+ 21300,
695
+ 23200,
696
+ 25200,
697
+ 27400,
698
+ 29800,
699
+ 32400,
700
+ 35200,
701
+ 38200,
702
+ 41400,
703
+ 44800,
704
+ 48400,
705
+ 52200,
706
+ 56200,
707
+ 60400,
708
+ 64800,
709
+ 69400,
710
+ 74200,
711
+ 79200,
712
+ 84700,
713
+ 90700,
714
+ 97200,
715
+ 104200,
716
+ 111700,
717
+ 119700,
718
+ 128200,
719
+ 137200,
720
+ 146700,
721
+ 156700,
722
+ 167700,
723
+ 179700,
724
+ 192700,
725
+ 206700,
726
+ 221700,
727
+ 237700,
728
+ 254700,
729
+ 272700,
730
+ 291700,
731
+ 311700,
732
+ 333700,
733
+ 357700,
734
+ 383700,
735
+ 411700,
736
+ 441700,
737
+ 476700,
738
+ 516700,
739
+ 561700,
740
+ 611700,
741
+ 666700,
742
+ 726700,
743
+ 791700,
744
+ 861700,
745
+ 936700,
746
+ 1016700,
747
+ 1101700,
748
+ 1191700,
749
+ 1286700,
750
+ 1386700,
751
+ 1496700,
752
+ 1616700,
753
+ 1746700,
754
+ 1886700,
755
+ 0,
756
+ 5555,
757
+ 1886700,
758
+ 1886700,
759
+ 1886700,
760
+ 1886700,
761
+ 1886700,
762
+ 1886700,
763
+ 1886700,
764
+ 1886700,
765
+ 1886700,
766
+ 1886700,
767
+ 1886700,
768
+ 1886700,
769
+ 1886700,
770
+ 1886700,
771
+ 1886700,
772
+ 1886700,
773
+ 1886700,
774
+ 1886700,
775
+ 1886700,
776
+ 1886700,
777
+ 1886700,
778
+ 1886700,
779
+ 1886700,
780
+ 1886700,
781
+ 1886700,
782
+ 1886700,
783
+ 1886700,
784
+ 1886700,
785
+ 1886700,
786
+ 1886700,
787
+ 1886700,
788
+ 1886700,
789
+ 1886700,
790
+ 1886700,
791
+ 1886700,
792
+ 1886700,
793
+ 1886700,
794
+ 1886700,
795
+ 1886700,
796
+ 1886700,
797
+ 1886700,
798
+ 1886700,
799
+ 1886700,
800
+ 1886700,
801
+ 1886700,
802
+ 1886700,
803
+ 1886700,
804
+ 1886700,
805
+ 1886700,
806
+ 1886700,
807
+ 1886700,
808
+ 1886700,
809
+ 1886700,
810
+ 1886700,
811
+ 1886700,
812
+ 1886700,
813
+ 1886700,
814
+ 1886700,
815
+ 1886700,
816
+ 1886700,
817
+ 1886700,
818
+ 1886700,
819
+ 1886700,
820
+ 1886700,
821
+ 1886700,
822
+ 1886700,
823
+ 1886700,
824
+ 1886700,
825
+ 1886700,
826
+ 1886700,
827
+ 1886700,
828
+ 1886700,
829
+ 1886700,
830
+ 1886700,
831
+ 1886700,
832
+ 1886700,
833
+ 1886700,
834
+ 1886700,
835
+ 1886700,
836
+ 1886700,
837
+ 1886700,
838
+ 1886700,
839
+ 1886700,
840
+ 1886700,
841
+ 1886700,
842
+ 1886700,
843
+ 1886700,
844
+ 1886700,
845
+ 1886700,
846
+ 1886700,
847
+ 1886700,
848
+ 1886700,
849
+ 1886700,
850
+ 1886700,
851
+ 1886700,
852
+ 1886700,
853
+ 1886700,
854
+ 1886700
855
+ ];
743
856
  leaderboardNames: {
744
857
  ARENA: 'ARENA';
745
858
  COPS_AND_CRIMS: 'MCGO';
@@ -966,7 +1079,6 @@ declare module 'hypixel-api-reborn' {
966
1079
  /**
967
1080
  * @description Returns all cache entries
968
1081
  */
969
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
970
1082
  readonly cache: Map<string, any>;
971
1083
  /**
972
1084
  * @description Allows you to get statistics of player
@@ -2261,7 +2373,6 @@ declare module 'hypixel-api-reborn' {
2261
2373
  tank: SKYBLOCK_SKILL_DATA;
2262
2374
  };
2263
2375
  };
2264
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2265
2376
  collections: any;
2266
2377
  purse: number;
2267
2378
  stats?: {
@@ -3925,7 +4036,6 @@ declare module 'hypixel-api-reborn' {
3925
4036
  /**
3926
4037
  * @description Reads the bytes as a NBT tag
3927
4038
  */
3928
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3929
4039
  readNBT(): Promise<any[]>;
3930
4040
  }
3931
4041
  class ServerInfo {
@@ -1,24 +0,0 @@
1
- const fetch = require('../Private/uuidCache.js');
2
- const isUUID = require('./isUUID.js');
3
- const Errors = require('../Errors');
4
-
5
- module.exports = async (input, useThirdPartyAPI = '') => {
6
- if (!input) throw new Error(Errors.NO_NICKNAME_UUID);
7
- if (typeof input !== 'string') throw new Error(Errors.UUID_NICKNAME_MUST_BE_A_STRING);
8
- if (isUUID(input)) input = input.replace(/-/g, '');
9
- else throw new Error(Errors.MALFORMED_UUID);
10
- try {
11
- const customUrl = useThirdPartyAPI === true ? 'https://api.minetools.eu/uuid/' : useThirdPartyAPI;
12
- const url = useThirdPartyAPI ? `${customUrl}${input}` : `https://mowojang.matdoes.dev/${input}`;
13
- const res = await fetch(url, input);
14
- const parsedRes = await res.json();
15
- if (parsedRes.error) {
16
- return Promise.reject(new Error(Errors.MALFORMED_UUID));
17
- }
18
- return parsedRes.name;
19
- } catch {
20
- // 2nd try
21
- if (!useThirdPartyAPI) return module.exports(input, cacheTime, true);
22
- throw new Error(Errors.PLAYER_DOES_NOT_EXIST);
23
- }
24
- };