Skip to content

Commit

Permalink
changed clientsmap and client (#836)
Browse files Browse the repository at this point in the history
implements (and closes) #818
  • Loading branch information
u9g committed Mar 29, 2021
1 parent bdf792c commit 4aaa837
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ declare module 'minecraft-protocol' {
connect?: (client: Client) => void
agent?: Agent
auth?: 'mojang' | 'microsoft'
id?: number
}

export class Server extends EventEmitter {
Expand Down Expand Up @@ -103,7 +104,7 @@ declare module 'minecraft-protocol' {
}

interface ClientsMap {
[key: string]: Client
[key: number]: Client
}

export interface PingOptions {
Expand Down

0 comments on commit 4aaa837

Please sign in to comment.