Rank Stuff
This commit is contained in:
@@ -11,9 +11,15 @@ import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
|
||||
import net.minecraft.client.KeyMapping;
|
||||
import net.minecraft.resources.Identifier;
|
||||
import org.lwjgl.glfw.GLFW;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
||||
public class CitrusDevClient implements ClientModInitializer {
|
||||
|
||||
public static final Logger logger = LoggerFactory.getLogger(CitrusDevClient.class);
|
||||
private static final boolean debug = true;
|
||||
|
||||
public static final String API_URL = "https://citrus-api.winniepat.de";
|
||||
|
||||
private static KeyMapping openScreenKey;
|
||||
@@ -59,4 +65,9 @@ public class CitrusDevClient implements ClientModInitializer {
|
||||
});
|
||||
}
|
||||
|
||||
public static void debugLog(String message) {
|
||||
if (debug) {
|
||||
logger.info("[Citrus] [DEBUG] {}", message);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -32,8 +32,7 @@ public class Verifier {
|
||||
|
||||
HTTP.sendAsync(request, HttpResponse.BodyHandlers.ofString())
|
||||
.thenAccept(response -> {
|
||||
System.out.println("Status: " + response.statusCode());
|
||||
System.out.println("Body: " + response.body());
|
||||
CitrusDevClient.debugLog("Verification Response - Status: " + response.statusCode() + ", Body: " + response.body());
|
||||
})
|
||||
.exceptionally(error -> {
|
||||
error.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user