UNPKG

@rlqd/minecraft-server-util

Version:

A Node.js library for Minecraft servers that can retrieve status, perform queries, and RCON into servers.

18 lines (17 loc) 461 B
import { QueryOptions } from './types/QueryOptions'; export interface BasicQueryResponse { motd: { raw: string; clean: string; html: string; }; gameType: string; map: string; players: { online: number; max: number; }; hostPort: number; hostIP: string; } export declare function queryBasic(host: string, port?: number, options?: QueryOptions): Promise<BasicQueryResponse>;