Compare commits
3 Commits
dc8e8c62f0
...
24b0a767be
Author | SHA1 | Date | |
---|---|---|---|
24b0a767be | |||
21c93f45b8 | |||
579aa64094 |
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>xyz.mcutils</groupId>
|
<groupId>xyz.mcutils</groupId>
|
||||||
<artifactId>mcutils-java-library</artifactId>
|
<artifactId>mcutils-java-library</artifactId>
|
||||||
<version>1.2.0</version>
|
<version>1.2.1</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
@ -39,6 +39,11 @@ public class MinecraftServer {
|
|||||||
*/
|
*/
|
||||||
private Players players;
|
private Players players;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The location of the server.
|
||||||
|
*/
|
||||||
|
private GeoLocation location;
|
||||||
|
|
||||||
@AllArgsConstructor @Getter
|
@AllArgsConstructor @Getter
|
||||||
private static class MOTD {
|
private static class MOTD {
|
||||||
|
|
||||||
@ -94,4 +99,35 @@ public class MinecraftServer {
|
|||||||
private String name;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user