responseType) {
+ Request request = new Request.Builder()
+ .url(endpoint)
+ .build(); // Build the request
+ try (Response response = HTTP_CLIENT.newCall(request).execute()) {
+ int status = response.code(); // The response status code
+ String json = response.body().string(); // The json response
+ if (status != 200) { // Not 200 (OK), throw an exception
+ throw new RestfulMCAPIException(json);
+ }
+ return RESTfulMCClient.GSON.fromJson(json, responseType); // Return the response
+ }
+ }
+}
\ No newline at end of file
diff --git a/Java-SDK/src/main/java/cc/restfulmc/sdk/response/CacheableResponse.java b/Java-SDK/src/main/java/cc/restfulmc/sdk/response/CacheableResponse.java
new file mode 100644
index 0000000..08870fe
--- /dev/null
+++ b/Java-SDK/src/main/java/cc/restfulmc/sdk/response/CacheableResponse.java
@@ -0,0 +1,40 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2024 Braydon (Rainnny).
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+package cc.restfulmc.sdk.response;
+
+import lombok.Getter;
+import lombok.ToString;
+
+/**
+ * A cached response.
+ *
+ * @author Braydon
+ */
+@Getter @ToString
+public abstract class CacheableResponse {
+ /**
+ * The unix timestamp of when the response was cached.
+ */
+ private long cached;
+}
\ No newline at end of file
diff --git a/Java-SDK/src/main/java/cc/restfulmc/sdk/response/Player.java b/Java-SDK/src/main/java/cc/restfulmc/sdk/response/Player.java
new file mode 100644
index 0000000..0eb2730
--- /dev/null
+++ b/Java-SDK/src/main/java/cc/restfulmc/sdk/response/Player.java
@@ -0,0 +1,57 @@
+/*
+ * MIT License
+ *
+ * Copyright (c) 2024 Braydon (Rainnny).
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+package cc.restfulmc.sdk.response;
+
+import lombok.*;
+
+import java.util.UUID;
+
+/**
+ * A representation of a player.
+ *
+ * @author Braydon
+ */
+@AllArgsConstructor @Getter
+@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = false)
+@ToString(callSuper = true)
+public final class Player extends CacheableResponse {
+ /**
+ * The unique id of this player.
+ */
+ @NonNull private final UUID uniqueId;
+
+ /**
+ * The username of this player.
+ */
+ @NonNull private final String username;
+
+ /**
+ * Is this player legacy?
+ *
+ * A "Legacy" player is a player that
+ * has not yet migrated to a Mojang account.
+ *
+ */
+ private final boolean legacy;
+}
\ No newline at end of file