hypixel-api-reborn 11.0.0 → 11.1.0
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/.prettierrc +13 -13
- package/LICENSE +20 -20
- package/README.md +65 -65
- package/package.json +1 -1
- package/src/API/getAPIStatus.js +1 -1
- package/src/API/skyblock/getSkyblockMember.js +1 -3
- package/src/API/skyblock/getSkyblockProfiles.js +1 -5
- package/src/Client.js +4 -4
- package/src/Errors.js +2 -1
- package/src/Private/requests.js +1 -1
- package/src/Private/updater.js +2 -16
- package/src/Private/validate.js +1 -1
- package/src/structures/MiniGames/WoolWars.js +1 -1
- package/src/structures/Pet.js +3 -3
- package/src/utils/Constants.js +3 -1
- package/typings/index.d.ts +5 -3
package/.prettierrc
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bracketSameLine": true,
|
|
3
|
-
"trailingComma": "none",
|
|
4
|
-
"arrowParens": "always",
|
|
5
|
-
"bracketSpacing": true,
|
|
6
|
-
"proseWrap": "always",
|
|
7
|
-
"singleQuote": true,
|
|
8
|
-
"printWidth": 210,
|
|
9
|
-
"useTabs": false,
|
|
10
|
-
"tabWidth": 2,
|
|
11
|
-
"semi": true,
|
|
12
|
-
"endOfLine": "lf"
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"bracketSameLine": true,
|
|
3
|
+
"trailingComma": "none",
|
|
4
|
+
"arrowParens": "always",
|
|
5
|
+
"bracketSpacing": true,
|
|
6
|
+
"proseWrap": "always",
|
|
7
|
+
"singleQuote": true,
|
|
8
|
+
"printWidth": 210,
|
|
9
|
+
"useTabs": false,
|
|
10
|
+
"tabWidth": 2,
|
|
11
|
+
"semi": true,
|
|
12
|
+
"endOfLine": "lf"
|
|
13
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 StavZDev
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 StavZDev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<img src="https://i.imgur.com/cDFoQZU.png?1">
|
|
3
|
-
<h1>Hypixel API • Reborn</h1>
|
|
4
|
-
<a href="https://discord.gg/NSEBNMM"><img src="https://discordapp.com/api/guilds/660416184252104705/embed.png"></a>
|
|
5
|
-
<a href="https://travis-ci.org/StavZ/hypixel-api-reborn"><img src="https://flat.badgen.net/travis/hypixel-api-reborn/hypixel-api-reborn"></a>
|
|
6
|
-
<a href="https://app.codacy.com/gh/Hypixel-API-Reborn/hypixel-api-reborn?utm_source=github.com&utm_medium=referral&utm_content=Hypixel-API-Reborn/hypixel-api-reborn&utm_campaign=Badge_Grade"><img src="https://flat.badgen.net/codacy/grade/71cd7e95499b496cb2dd11c29b9def33/master"></a>
|
|
7
|
-
<img src="https://flat.badgen.net/npm/v/hypixel-api-reborn">
|
|
8
|
-
<img src="https://flat.badgen.net/npm/node/hypixel-api-reborn">
|
|
9
|
-
<img src="https://flat.badgen.net/npm/license/hypixel-api-reborn">
|
|
10
|
-
<a href="https://github.com/Hypixel-API-Reborn/hypixel-api-reborn"><img src="https://flat.badgen.net/github/stars/hypixel-api-reborn/hypixel-api-reborn"></a>
|
|
11
|
-
<a href="https://www.npmjs.com/package/hypixel-api-reborn"><img src="https://nodei.co/npm/hypixel-api-reborn.png?compact=true"></a>
|
|
12
|
-
<h2>A feature-rich Hypixel API wrapper for Node.js</h2>
|
|
13
|
-
<br>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
### Links
|
|
17
|
-
|
|
18
|
-
[Discord Support](https://discord.gg/NSEBNMM) | [Documentation](https://hypixel-api-reborn.github.io/) | [NPM](https://www.npmjs.com/package/hypixel-api-reborn) |
|
|
19
|
-
[GitHub](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn) | [ToDo](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn/projects/1) | [CLI](https://github.com/Hypixel-API-Reborn/cli)
|
|
20
|
-
|
|
21
|
-
#### Requirements
|
|
22
|
-
|
|
23
|
-
**For Node.js users >= v14.x.x** <br> **For TypeScript users >= v3.5**
|
|
24
|
-
|
|
25
|
-
### Installation & Usage
|
|
26
|
-
|
|
27
|
-
```shell
|
|
28
|
-
npm i hypixel-api-reborn
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
```js
|
|
32
|
-
const Hypixel = require('hypixel-api-reborn');
|
|
33
|
-
const hypixel = new Hypixel.Client('API-KEY');
|
|
34
|
-
// https://stavzdev.is-inside.me/cCMiZdoy.gif
|
|
35
|
-
|
|
36
|
-
// getPlayer
|
|
37
|
-
hypixel
|
|
38
|
-
.getPlayer('StavZDev')
|
|
39
|
-
.then((player) => {
|
|
40
|
-
console.log(player.level); // 141
|
|
41
|
-
})
|
|
42
|
-
.catch((e) => {
|
|
43
|
-
console.error(e);
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
// getGuild
|
|
47
|
-
hypixel
|
|
48
|
-
.getGuild('name', 'The Foundation')
|
|
49
|
-
.then((guild) => {
|
|
50
|
-
console.log(guild.level); // 111
|
|
51
|
-
})
|
|
52
|
-
.catch((e) => {
|
|
53
|
-
console.error(e);
|
|
54
|
-
});
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
For more examples go to our [documentation](https://hypixel-api-reborn.github.io/).
|
|
58
|
-
|
|
59
|
-
## Changelog
|
|
60
|
-
|
|
61
|
-
[
|
|
62
|
-
|
|
63
|
-
### Try it now
|
|
64
|
-
|
|
65
|
-
**[Code Sandbox](https://codesandbox.io/s/clever-babbage-xqmfw?file=/src/index.js)**
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://i.imgur.com/cDFoQZU.png?1">
|
|
3
|
+
<h1>Hypixel API • Reborn</h1>
|
|
4
|
+
<a href="https://discord.gg/NSEBNMM"><img src="https://discordapp.com/api/guilds/660416184252104705/embed.png"></a>
|
|
5
|
+
<a href="https://travis-ci.org/StavZ/hypixel-api-reborn"><img src="https://flat.badgen.net/travis/hypixel-api-reborn/hypixel-api-reborn"></a>
|
|
6
|
+
<a href="https://app.codacy.com/gh/Hypixel-API-Reborn/hypixel-api-reborn?utm_source=github.com&utm_medium=referral&utm_content=Hypixel-API-Reborn/hypixel-api-reborn&utm_campaign=Badge_Grade"><img src="https://flat.badgen.net/codacy/grade/71cd7e95499b496cb2dd11c29b9def33/master"></a>
|
|
7
|
+
<img src="https://flat.badgen.net/npm/v/hypixel-api-reborn">
|
|
8
|
+
<img src="https://flat.badgen.net/npm/node/hypixel-api-reborn">
|
|
9
|
+
<img src="https://flat.badgen.net/npm/license/hypixel-api-reborn">
|
|
10
|
+
<a href="https://github.com/Hypixel-API-Reborn/hypixel-api-reborn"><img src="https://flat.badgen.net/github/stars/hypixel-api-reborn/hypixel-api-reborn"></a>
|
|
11
|
+
<a href="https://www.npmjs.com/package/hypixel-api-reborn"><img src="https://nodei.co/npm/hypixel-api-reborn.png?compact=true"></a>
|
|
12
|
+
<h2>A feature-rich Hypixel API wrapper for Node.js</h2>
|
|
13
|
+
<br>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
### Links
|
|
17
|
+
|
|
18
|
+
[Discord Support](https://discord.gg/NSEBNMM) | [Documentation](https://hypixel-api-reborn.github.io/) | [NPM](https://www.npmjs.com/package/hypixel-api-reborn) |
|
|
19
|
+
[GitHub](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn) | [ToDo](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn/projects/1) | [CLI](https://github.com/Hypixel-API-Reborn/cli)
|
|
20
|
+
|
|
21
|
+
#### Requirements
|
|
22
|
+
|
|
23
|
+
**For Node.js users >= v14.x.x** <br> **For TypeScript users >= v3.5**
|
|
24
|
+
|
|
25
|
+
### Installation & Usage
|
|
26
|
+
|
|
27
|
+
```shell
|
|
28
|
+
npm i hypixel-api-reborn
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
const Hypixel = require('hypixel-api-reborn');
|
|
33
|
+
const hypixel = new Hypixel.Client('API-KEY');
|
|
34
|
+
// https://stavzdev.is-inside.me/cCMiZdoy.gif
|
|
35
|
+
|
|
36
|
+
// getPlayer
|
|
37
|
+
hypixel
|
|
38
|
+
.getPlayer('StavZDev')
|
|
39
|
+
.then((player) => {
|
|
40
|
+
console.log(player.level); // 141
|
|
41
|
+
})
|
|
42
|
+
.catch((e) => {
|
|
43
|
+
console.error(e);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// getGuild
|
|
47
|
+
hypixel
|
|
48
|
+
.getGuild('name', 'The Foundation')
|
|
49
|
+
.then((guild) => {
|
|
50
|
+
console.log(guild.level); // 111
|
|
51
|
+
})
|
|
52
|
+
.catch((e) => {
|
|
53
|
+
console.error(e);
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
For more examples go to our [documentation](https://hypixel-api-reborn.github.io/).
|
|
58
|
+
|
|
59
|
+
## Changelog
|
|
60
|
+
|
|
61
|
+
[v11.0.0](https://github.com/Hypixel-API-Reborn/hypixel-api-reborn/releases/tag/11.0.0)
|
|
62
|
+
|
|
63
|
+
### Try it now
|
|
64
|
+
|
|
65
|
+
**[Code Sandbox](https://codesandbox.io/s/clever-babbage-xqmfw?file=/src/index.js)**
|
package/package.json
CHANGED
package/src/API/getAPIStatus.js
CHANGED
|
@@ -3,6 +3,6 @@ const Parser = new Rss();
|
|
|
3
3
|
module.exports = async function (options) {
|
|
4
4
|
const Status = require('../structures/APIStatus.js');
|
|
5
5
|
const parsed = await Parser.parseURL('https://status.hypixel.net/history.rss');
|
|
6
|
-
if (options.raw) return parsed;
|
|
6
|
+
if (options && options.raw) return parsed;
|
|
7
7
|
return new Status(parsed);
|
|
8
8
|
};
|
|
@@ -7,9 +7,7 @@ module.exports = async function (query, options = { fetchPlayer: false }) {
|
|
|
7
7
|
query = await toUuid(query);
|
|
8
8
|
const res = await this._makeRequest(`/skyblock/profiles?uuid=${query}`);
|
|
9
9
|
if (res.raw) return res;
|
|
10
|
-
if (!res.profiles || !res.profiles.length)
|
|
11
|
-
return new Map();
|
|
12
|
-
}
|
|
10
|
+
if (!res.profiles || !res.profiles.length) throw new Error(Errors.NO_SKYBLOCK_PROFILES);
|
|
13
11
|
const player = options.fetchPlayer ? await getPlayer.call(this, query, options) : null;
|
|
14
12
|
const memberByProfileName = new Map();
|
|
15
13
|
for (const profile of res.profiles) {
|
|
@@ -7,11 +7,7 @@ module.exports = async function (query, options = { fetchPlayer: false }) {
|
|
|
7
7
|
query = await toUuid(query);
|
|
8
8
|
const res = await this._makeRequest(`/skyblock/profiles?uuid=${query}`);
|
|
9
9
|
if (res.raw) return res;
|
|
10
|
-
|
|
11
|
-
if (!res.profiles || !res.profiles.length) {
|
|
12
|
-
return [];
|
|
13
|
-
}
|
|
14
|
-
|
|
10
|
+
if (!res.profiles || !res.profiles.length) throw new Error(Errors.NO_SKYBLOCK_PROFILES);
|
|
15
11
|
const players = new Map();
|
|
16
12
|
if (options.fetchPlayer) {
|
|
17
13
|
const uniqueUuids = [...new Set(res.profiles.map((profile) => Object.keys(profile.members)).flat())];
|
package/src/Client.js
CHANGED
|
@@ -42,10 +42,10 @@ class Client extends EventEmitter {
|
|
|
42
42
|
args
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
|
+
}
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
47
|
+
if (this.options.checkForUpdates) {
|
|
48
|
+
updater.checkForUpdates();
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* All cache entries
|
|
@@ -357,7 +357,7 @@ class Client extends EventEmitter {
|
|
|
357
357
|
* @prop {number} [cacheSize=-1] The amount how many results will be cached. (`-1` for infinity)
|
|
358
358
|
* @prop {boolean} [silent=false] Don't automatically put warnings into console.
|
|
359
359
|
* @prop {object} [headers={}] Extra Headers ( like User-Agent ) to add to request.
|
|
360
|
-
* @prop {boolean} [checkForUpdates=
|
|
360
|
+
* @prop {boolean} [checkForUpdates=true] Enable/Disable check for new version of hypixel-api-reborn.
|
|
361
361
|
*/
|
|
362
362
|
const defaultCache = require('./Private/defaultCache.js');
|
|
363
363
|
/**
|
package/src/Errors.js
CHANGED
|
@@ -40,5 +40,6 @@ module.exports = {
|
|
|
40
40
|
UNEXPECTED_ERROR:
|
|
41
41
|
"[hypixel-api-reborn] The data provided to hypixel API is malformed and thus not recognized by hypixel, but this shouldn't be your fault. Please report this error in our Discord Server https://discord.gg/NSEBNMM or GitHub. ",
|
|
42
42
|
RATE_LIMIT_EXCEEDED:
|
|
43
|
-
"[hypixel-api-reborn] The rate limitations on your API Key has been exceeded. There might be an outage (Check Hypixel's status page), or you simply did too many requests in a short time. Hint: Enable rate limit options! They can help you avoid this error! For help join our Discord Server https://discord.gg/NSEBNMM"
|
|
43
|
+
"[hypixel-api-reborn] The rate limitations on your API Key has been exceeded. There might be an outage (Check Hypixel's status page), or you simply did too many requests in a short time. Hint: Enable rate limit options! They can help you avoid this error! For help join our Discord Server https://discord.gg/NSEBNMM",
|
|
44
|
+
NO_SKYBLOCK_PROFILES: '[hypixel-api-reborn] The player has no skyblock profiles.'
|
|
44
45
|
};
|
package/src/Private/requests.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable require-jsdoc */
|
|
2
2
|
const requireFetch = !globalThis.fetch;
|
|
3
3
|
const externalFetch = require('node-fetch');
|
|
4
|
-
const BASE_URL = 'https://api.hypixel.net';
|
|
4
|
+
const BASE_URL = 'https://api.hypixel.net/v2';
|
|
5
5
|
const Errors = require('../Errors');
|
|
6
6
|
const Cache = require('./defaultCache');
|
|
7
7
|
const Client = require('../Client.js');
|
package/src/Private/updater.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
1
|
/* eslint-disable require-jsdoc */
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
3
|
const fetch = require('node-fetch');
|
|
4
4
|
const Errors = require('../Errors');
|
|
5
5
|
class Updater {
|
|
@@ -11,23 +11,9 @@ class Updater {
|
|
|
11
11
|
const latestVersion = metadata['dist-tags'].latest;
|
|
12
12
|
const compare = this.compare(currentVersion, latestVersion);
|
|
13
13
|
if (compare === -1) {
|
|
14
|
-
|
|
14
|
+
console.log(`New version of hypixel-api-reborn is available! Current version: ${currentVersion}, Latest version: ${latestVersion}`);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
notify(newVersion) {
|
|
18
|
-
console.log(`
|
|
19
|
-
|
|
20
|
-
New version of hypixel-api-reborn is available!
|
|
21
|
-
|
|
22
|
-
v${newVersion}
|
|
23
|
-
Changelog: https://github.com/Hypixel-API-Reborn/hypixel-api-reborn/releases/tag/${newVersion}
|
|
24
|
-
|
|
25
|
-
\x1b[33mnpm i hypixel-api-reborn@${newVersion}\x1b[0m
|
|
26
|
-
or
|
|
27
|
-
\x1b[33myarn add hypixel-api-reborn@${newVersion}\x1b[0m
|
|
28
|
-
|
|
29
|
-
`);
|
|
30
|
-
}
|
|
31
17
|
compare(a, b) {
|
|
32
18
|
const pa = a.split('.');
|
|
33
19
|
const pb = b.split('.');
|
package/src/Private/validate.js
CHANGED
|
@@ -83,7 +83,7 @@ class WoolWars {
|
|
|
83
83
|
*/
|
|
84
84
|
static generateStatsFor(data, _class) {
|
|
85
85
|
// N.B i called it _class instead of class because reserved keyword
|
|
86
|
-
const workingData = (_class ? data?.['classes'][_class] : data) || {};
|
|
86
|
+
const workingData = (_class ? data?.['classes']?.[_class] : data) || {};
|
|
87
87
|
return {
|
|
88
88
|
roundWins: workingData.wins || 0,
|
|
89
89
|
gamesPlayed: workingData.games_played || 0,
|
package/src/structures/Pet.js
CHANGED
|
@@ -44,7 +44,7 @@ class Pet {
|
|
|
44
44
|
* Last time the pet was fed ( Date )
|
|
45
45
|
* @type {?Date}
|
|
46
46
|
*/
|
|
47
|
-
this.lastFedAt = this.lastFed ? new Date(this.
|
|
47
|
+
this.lastFedAt = this.lastFed ? new Date(this.lastFed) : null;
|
|
48
48
|
/**
|
|
49
49
|
* Thirst value ( 100 is highest )
|
|
50
50
|
* @type {?number}
|
|
@@ -59,7 +59,7 @@ class Pet {
|
|
|
59
59
|
* Last time the pet drank ( Date )
|
|
60
60
|
* @type {?Date}
|
|
61
61
|
*/
|
|
62
|
-
this.lastDrankAt = this.lastDrank ? new Date(this.
|
|
62
|
+
this.lastDrankAt = this.lastDrank ? new Date(this.lastDrank) : null;
|
|
63
63
|
/**
|
|
64
64
|
* Exercise/Entertainment value ( 100 is highest )
|
|
65
65
|
* @type {?number}
|
|
@@ -74,7 +74,7 @@ class Pet {
|
|
|
74
74
|
* Last time the pet exercised ( Date )
|
|
75
75
|
* @type {?Date}
|
|
76
76
|
*/
|
|
77
|
-
this.lastExercisedAt = this.lastExercised ? new Date(this.
|
|
77
|
+
this.lastExercisedAt = this.lastExercised ? new Date(this.lastExerciced) : null;
|
|
78
78
|
/**
|
|
79
79
|
* Raw Nickname, if any
|
|
80
80
|
* @type {?string}
|
package/src/utils/Constants.js
CHANGED
|
@@ -756,7 +756,8 @@ module.exports = {
|
|
|
756
756
|
IDLE: 'Idle',
|
|
757
757
|
QUEUE: 'Queue',
|
|
758
758
|
MAIN_LOBBY: 'Main Lobby',
|
|
759
|
-
TOURNAMENT_LOBBY: 'Tournament Lobby'
|
|
759
|
+
TOURNAMENT_LOBBY: 'Tournament Lobby',
|
|
760
|
+
WOOL_GAMES: 'Wool Wars'
|
|
760
761
|
},
|
|
761
762
|
SkyWarsPrestigeIcons: {
|
|
762
763
|
default: '⋆',
|
|
@@ -815,6 +816,7 @@ module.exports = {
|
|
|
815
816
|
{ name: 'The Pit', code: 'PIT', id: 64 },
|
|
816
817
|
{ name: 'Replay', code: 'REPLAY', id: 65 },
|
|
817
818
|
{ name: 'SMP', code: 'SMP', id: 67 },
|
|
819
|
+
{ name: 'Wool Wars', code: 'WOOL_GAMES', id: 68 },
|
|
818
820
|
{ name: 'Limbo', code: 'LIMBO', id: -2 },
|
|
819
821
|
{ name: 'Queue', code: 'QUEUE', id: -3 },
|
|
820
822
|
{ name: 'Main Lobby', code: 'MAIN_LOBBY', id: -4 },
|
package/typings/index.d.ts
CHANGED
|
@@ -41,8 +41,9 @@ export type GAME_NAME =
|
|
|
41
41
|
| 'Main Lobby'
|
|
42
42
|
| 'Tournament Lobby'
|
|
43
43
|
| 'Idle'
|
|
44
|
-
| 'SMP'
|
|
45
|
-
|
|
44
|
+
| 'SMP'
|
|
45
|
+
| 'Wool Wars';
|
|
46
|
+
export type GAME_ID = 2 | 3 | 4 | 5 | 6 | 7 | 13 | 14 | 17 | 20 | 21 | 23 | 24 | 25 | 26 | 51 | 52 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 63 | 64 | 65 | 67 | 68 | -1 | -2 | -3 | -4 | -5 | -6;
|
|
46
47
|
export type GAME_CODE =
|
|
47
48
|
| 'QUAKECRAFT'
|
|
48
49
|
| 'WALLS'
|
|
@@ -76,7 +77,8 @@ export type GAME_CODE =
|
|
|
76
77
|
| 'QUEUE'
|
|
77
78
|
| 'MAIN_LOBBY'
|
|
78
79
|
| 'TOURNAMENT_LOBBY'
|
|
79
|
-
| 'SMP'
|
|
80
|
+
| 'SMP'
|
|
81
|
+
| 'WOOL_GAMES';
|
|
80
82
|
export type SKYWARS_PRESTIGE = 'Iron' | 'Gold' | 'Diamond' | 'Emerald' | 'Sapphire' | 'Ruby' | 'Crystal' | 'Opal' | 'Amethyst' | 'Rainbow' | 'Mythic';
|
|
81
83
|
export type SKYWARS_PRESTIGE_ICON = '⋆' | '★' | '☆' | '⁕' | '✶' | '✳' | '✴' | '✷' | '❋' | '✼' | '❂' | '❁' | '☬' | '✙' | '❤️' | '☠' | '✦' | '✌' | '❦' | '✵' | '❣' | '☯' | '✺' | 'ಠ_ಠ' | '⚔';
|
|
82
84
|
export type BEDWARS_PRESTIGE =
|