feat(pingJava): add protocolVersion

feat(types): `PingOptions` for Java

fix(types): type names

fix(types): type names
This commit is contained in:
Egornya
2023-12-08 15:26:10 +04:00
committed by inotflying
parent 9dace3748b
commit d9bf4cfb3f
3 changed files with 20 additions and 12 deletions

View File

@ -2,7 +2,7 @@
* @param port The server port.
* @param timeout The read/write socket timeout.
*/
export type PingOptions = {
export type BedrockPingOptions = {
port: number,
timeout: number;
};
@ -45,5 +45,5 @@ export type BedrockPingResponse = {
* ```
* @see [source](https://github.com/minescope/mineping/blob/915edbec9c9ad811459458600af3531ec0836911/lib/bedrock.js#L204)
*/
export function pingBedrock(host: string, options?: PingOptions): Promise<BedrockPingResponse>;
export function pingBedrock(host: string, options?: BedrockPingOptions): Promise<BedrockPingResponse>;