From 7e7ac42b8e8f7b6a75f5cc580cbc4a859eb01cf6 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Fri, 26 Apr 2024 19:30:04 -0400 Subject: [PATCH] Remove .fleet, oops --- Frontend/.fleet/settings.json | 4 ---- Java-SDK/src/main/java/cc/restfulmc/sdk/Testy.java | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 Frontend/.fleet/settings.json diff --git a/Frontend/.fleet/settings.json b/Frontend/.fleet/settings.json deleted file mode 100644 index ee51b23..0000000 --- a/Frontend/.fleet/settings.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "nodejs.editor.formatOnSave.prettier.mode": "Enabled", - "editor.guides": [] -} \ No newline at end of file diff --git a/Java-SDK/src/main/java/cc/restfulmc/sdk/Testy.java b/Java-SDK/src/main/java/cc/restfulmc/sdk/Testy.java index 64dc646..006a914 100644 --- a/Java-SDK/src/main/java/cc/restfulmc/sdk/Testy.java +++ b/Java-SDK/src/main/java/cc/restfulmc/sdk/Testy.java @@ -32,6 +32,7 @@ import cc.restfulmc.sdk.response.Player; import cc.restfulmc.sdk.response.server.BedrockMinecraftServer; import cc.restfulmc.sdk.response.server.JavaMinecraftServer; import cc.restfulmc.sdk.response.server.MinecraftServer; +import cc.restfulmc.sdk.response.server.dns.DNSRecord; import lombok.SneakyThrows; /** @@ -58,6 +59,10 @@ public final class Testy { JavaMinecraftServer server = sync.getMinecraftServer(MinecraftServer.Platform.JAVA, "hypixel.net"); MinecraftServer.Players players = server.getPlayers(); System.out.printf("%s has %s/%s players online%n", server.getHostname(), players.getOnline(), players.getMax()); + + for (DNSRecord record : server.getRecords()) { + System.out.println("record = " + record); + } } catch (RESTfulMCAPIException ex) { if (ex.getCode() == 400 || ex.getCode() == 404) { System.out.println("Server not found!");