add mods and plugins to server response
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m31s

This commit is contained in:
Lee
2024-04-10 13:24:56 +01:00
parent 28cd7f192d
commit 63a3587586
12 changed files with 82 additions and 24 deletions

View File

@ -108,7 +108,7 @@ public class MinecraftServer {
/**
* Player count data for a server.
*/
@AllArgsConstructor @Getter @ToString
@AllArgsConstructor @Getter
public static class Players {
/**
* The online players on this server.
@ -141,4 +141,40 @@ public class MinecraftServer {
@NonNull private final String name;
}
}
/**
* Mod data for a server.
*/
@AllArgsConstructor @Getter
public static final class Mod {
/**
* The name of the mod.
*/
private final String name;
/**
* The version of the mod.
*/
private final String version;
}
/**
* Plugin data for a server.
*/
@AllArgsConstructor @Getter
public static final class Plugin {
/**
* The name of the plugin.
*/
private final String name;
/**
* The version of the plugin.
*/
private final String version;
}
}