diff --git a/package.json b/package.json index 22d07d0..613c861 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcutils-library", - "version": "1.3.0", + "version": "1.3.1", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/types/server/server.ts b/src/types/server/server.ts index a82dbdd..f6383b3 100644 --- a/src/types/server/server.ts +++ b/src/types/server/server.ts @@ -28,6 +28,11 @@ export type MinecraftServer = { * The players on the server. */ players: Players; + + /** + * The location of the server, or undefined if the location is unknown. + */ + location?: GeoLocation; }; type Motd = { @@ -75,3 +80,30 @@ type PlayerSample = { */ name: string; }; + +type GeoLocation = { + /** + * The country of the location. + */ + country: string; + + /** + * The region of the location. + */ + region: string; + + /** + * The city of the location. + */ + city: string; + + /** + * The latitude of the location. + */ + latitude: number; + + /** + * The longitude of the location. + */ + longitude: number; +}