minestat-es
Version:
Promise-based Minecraft server status
12 lines (11 loc) • 371 B
TypeScript
import { ServerInfo } from './types';
import { QueryProtocol } from './protocol';
/**
* These two bytes will cause the server to send a reply.
*/
export declare const queryBytes: Buffer<ArrayBuffer>;
export declare class LegacyQueryProtocol implements QueryProtocol {
handshakePacket(): Buffer;
pingPacket(): Buffer;
parse(response?: Buffer): ServerInfo;
}