diff --git a/JS-SDK/src/lib/restfulmc.ts b/JS-SDK/src/lib/restfulmc.ts index 5cd430d..c0c8a62 100644 --- a/JS-SDK/src/lib/restfulmc.ts +++ b/JS-SDK/src/lib/restfulmc.ts @@ -61,7 +61,9 @@ export const getMinecraftServer = ( * @returns the promised blocked status */ export const isMojangBlocked = (hostname: string): Promise => - new WebRequest(`/server/blocked/${hostname}`).execute(); + new WebRequest(`/server/blocked/${hostname}`).execute<{ + blocked: boolean; + }>().then((res) => res.blocked); /** * Get the icon of the Java Minecraft