add server location
This commit is contained in:
parent
2f17c4d218
commit
68c9ac8a05
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mcutils-library",
|
"name": "mcutils-library",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -28,6 +28,11 @@ export type MinecraftServer = {
|
|||||||
* The players on the server.
|
* The players on the server.
|
||||||
*/
|
*/
|
||||||
players: Players;
|
players: Players;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The location of the server, or undefined if the location is unknown.
|
||||||
|
*/
|
||||||
|
location?: GeoLocation;
|
||||||
};
|
};
|
||||||
|
|
||||||
type Motd = {
|
type Motd = {
|
||||||
@ -75,3 +80,30 @@ type PlayerSample = {
|
|||||||
*/
|
*/
|
||||||
name: string;
|
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;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user