mirror of
https://github.com/minescope/mineping.git
synced 2025-07-10 07:34:35 +03:00
refactor!: changes in bedrock protocol code
BREAKING CHANGE: new bedrock ping response format
This commit is contained in:
18
types/lib/bedrock.d.ts
vendored
18
types/lib/bedrock.d.ts
vendored
@ -3,22 +3,24 @@
|
||||
* @param timeout The read/write socket timeout.
|
||||
*/
|
||||
export type BedrockPingOptions = {
|
||||
port?: number | undefined,
|
||||
timeout?: number | undefined;
|
||||
port?: number;
|
||||
timeout?: number;
|
||||
};
|
||||
|
||||
export type BedrockPingResponse = {
|
||||
edition: string;
|
||||
name: string;
|
||||
version: {
|
||||
gameVersion: string;
|
||||
protocol: string;
|
||||
protocolVersion: number;
|
||||
minecraftVersion: string;
|
||||
};
|
||||
players: {
|
||||
max: string;
|
||||
online: string;
|
||||
online: number;
|
||||
max: number;
|
||||
};
|
||||
description: string;
|
||||
gamemode: string;
|
||||
serverId: string;
|
||||
mapName: string;
|
||||
gameMode: string;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user