3 Commits

Author SHA1 Message Date
24b0a767be Merge remote-tracking branch 'origin/master'
All checks were successful
Publish package to my Maven Repository / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 23s
2024-04-21 23:37:48 +01:00
21c93f45b8 bump ver 2024-04-21 23:34:40 +01:00
579aa64094 add location to the server 2024-04-21 23:29:25 +01:00
2 changed files with 37 additions and 1 deletions

View File

@ -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>

View File

@ -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;
}
} }