Update sdk/js/server/query
parent
4db58ce747
commit
a7f5877e43
@ -12,7 +12,7 @@ import {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const server: CachedJavaMinecraftServer | CachedBedrockMinecraftServer =
|
const server: CachedJavaMinecraftServer | CachedBedrockMinecraftServer =
|
||||||
await getMinecraftServer(ServerPlatform.JAVA, "hypixel.net");
|
await getMinecraftServer(ServerPlatform.JAVA / ServerPlatform.BEDROCK, "hypixel.net");
|
||||||
console.log(
|
console.log(
|
||||||
`Pinged ${server.ip}:${server.port}, there are ${server.players.online}/${server.players.max} players online`
|
`Pinged ${server.ip}:${server.port}, there are ${server.players.online}/${server.players.max} players online`
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user