Skip to content

Commit 352b33d

Browse files
add flag url to geolocation
1 parent 629c99d commit 352b33d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcutils-js-api",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"module": "dist/index.js",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/types/server/server.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface Server extends Cache {
88
motd: ServerMotd;
99
players: ServerPlayers;
1010
records: DnsRecord[];
11-
location?: ServerLocation | null;
11+
location?: GeoLocation | null;
1212
asn?: AsnData | null;
1313
}
1414

@@ -37,13 +37,14 @@ export type ServerPlayers = {
3737
sample?: ServerPlayerSample[];
3838
};
3939

40-
export type ServerLocation = {
40+
export type GeoLocation = {
4141
country: string;
4242
countryCode: string;
4343
region: string;
4444
city: string;
4545
latitude: number;
4646
longitude: number;
47+
flagUrl: string;
4748
};
4849

4950
export type AsnData = {

0 commit comments

Comments
 (0)