add location to the server

This commit is contained in:
Lee 2024-04-21 23:29:25 +01:00
parent 97a77a3af9
commit 579aa64094

@ -39,6 +39,11 @@ public class MinecraftServer {
*/
private Players players;
/**
* The location of the server.
*/
private GeoLocation location;
@AllArgsConstructor @Getter
private static class MOTD {
@ -94,4 +99,35 @@ public class MinecraftServer {
private String name;
}
}
/**
* The location of the server.
*/
@AllArgsConstructor @Getter
public static class GeoLocation {
/**
* The country of the server.
*/
private final String country;
/**
* The region of the server.
*/
private final String region;
/**
* The city of the server.
*/
private final String city;
/**
* The latitude of the server.
*/
private final double latitude;
/**
* The longitude of the server.
*/
private final double longitude;
}
}