From e50a85c6ba6aee9a58ff571140a9bab0bf23e9e6 Mon Sep 17 00:00:00 2001 From: Braydon Date: Mon, 15 Apr 2024 04:58:51 -0700 Subject: [PATCH] Update sdk/js/server/query --- sdk%2Fjs%2Fserver%2Fquery.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk%2Fjs%2Fserver%2Fquery.md b/sdk%2Fjs%2Fserver%2Fquery.md index 1ca11a0..ad34602 100644 --- a/sdk%2Fjs%2Fserver%2Fquery.md +++ b/sdk%2Fjs%2Fserver%2Fquery.md @@ -6,7 +6,7 @@ import { CachedJavaMinecraftServer, CachedBedrockMinecraftServer } from "restful import { getMinecraftServer } from "restfulmc-lib"; try { - const server: CachedJavaMinecraftServer | CachedBedrockMinecraftServer = await getMinecraftServer("java / bedrock", "hypixel.net"); + const server: CachedJavaMinecraftServer | CachedBedrockMinecraftServer = await getMinecraftServer(Platform.JAVA / Platform.BEDROCK, "hypixel.net"); console.log(`Pinged ${server.ip}:${server.port}, there are ${server.players.online}/${server.players.max} players online`); } catch (err) { if ((err as ErrorResponse).code == 404) {