add location to the server
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user