remove server debug
All checks were successful
ci / deploy (push) Successful in 1m4s

This commit is contained in:
Lee 2024-04-10 09:32:56 +01:00
parent 2e58d9c925
commit d959169f0b
2 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@ public class WebRequest {
* @return the response
* @param <T> the type of the response
*/
public static <T> T getAsEntity(String url, Class<T> clazz) {
public static <T> T getAsEntity(String url, Class<T> clazz) throws RateLimitException {
try {
ResponseEntity<T> profile = CLIENT.get()
.uri(url)

View File

@ -50,7 +50,6 @@ public final class JavaMinecraftServerPinger implements MinecraftServerPinger<Ja
// Send the status request to the server, and await back the response
JavaPacketStatusInStart packetStatusInStart = new JavaPacketStatusInStart();
packetStatusInStart.process(inputStream, outputStream);
System.out.println(packetStatusInStart.getResponse());
JavaServerStatusToken token = Main.GSON.fromJson(packetStatusInStart.getResponse(), JavaServerStatusToken.class);
return new JavaMinecraftServer(
hostname,
@ -68,7 +67,7 @@ public final class JavaMinecraftServerPinger implements MinecraftServerPinger<Ja
} else if (ex instanceof ConnectException || ex instanceof SocketTimeoutException) {
throw new ResourceNotFoundException(ex);
}
log.error("An error occurred pinging %s:%s:".formatted(hostname, port), ex);
log.error("An error occurred pinging %s".formatted(ServerUtils.getAddress(hostname, port)), ex);
}
return null;
}