From a7e6ca245803be3bbdbd0754b75aaac53f6a0577 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sat, 6 Apr 2024 21:23:53 -0400 Subject: [PATCH] Add player samples --- .../me/braydon/mc/model/MinecraftServer.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/main/java/me/braydon/mc/model/MinecraftServer.java b/src/main/java/me/braydon/mc/model/MinecraftServer.java index 30e12cc..de956f9 100644 --- a/src/main/java/me/braydon/mc/model/MinecraftServer.java +++ b/src/main/java/me/braydon/mc/model/MinecraftServer.java @@ -8,6 +8,7 @@ import me.braydon.mc.service.pinger.impl.BedrockMinecraftServerPinger; import me.braydon.mc.service.pinger.impl.JavaMinecraftServerPinger; import java.util.Arrays; +import java.util.UUID; /** * A model representing a Minecraft server. @@ -112,6 +113,27 @@ public class MinecraftServer { * The maximum allowed players on this server. */ private final int max; + + /** + * A sample of players on this server. + */ + @NonNull private final Sample[] sample; + + /** + * A sample player. + */ + @AllArgsConstructor @Getter @ToString + public static class Sample { + /** + * The unique id of this player. + */ + @NonNull private final UUID id; + + /** + * The name of this player. + */ + @NonNull private final String name; + } } /**