diff --git a/src/main/java/me/braydon/mc/model/token/JavaServerStatusToken.java b/src/main/java/me/braydon/mc/model/token/JavaServerStatusToken.java new file mode 100644 index 0000000..cc784a1 --- /dev/null +++ b/src/main/java/me/braydon/mc/model/token/JavaServerStatusToken.java @@ -0,0 +1,37 @@ +package me.braydon.mc.model.token; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NonNull; +import lombok.ToString; +import me.braydon.mc.model.MinecraftServer; +import me.braydon.mc.model.server.JavaMinecraftServer; + +/** + * A token representing the response from + * pinging a {@link JavaMinecraftServer}. + * + * @author Braydon + */ +@AllArgsConstructor @Getter @ToString +public final class JavaServerStatusToken { + /** + * The description (MOTD) of this server. + */ + @NonNull private final String description; + + /** + * The base64 encoded favicon of this server. + */ + @NonNull private final String favicon; + + /** + * The version information of this server. + */ + @NonNull private final MinecraftServer.Version version; + + /** + * The player counts of this server. + */ + @NonNull private final MinecraftServer.Players players; +} \ No newline at end of file