diff --git a/index.d.ts b/index.d.ts index 5923920..1af5fb8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -162,8 +162,8 @@ declare module 'bedrock-protocol' { constructor(options: Options) - listen(host?: string, port?: number): void - close(disconnectReason?: string): void + listen(host?: string, port?: number): Promise + close(disconnectReason?: string): Promise on(event: 'connect', cb: (client: Player) => void): any }