minecraft/interfaces/ServerType.ts
2022-12-03 21:02:24 +01:00

32 lines
436 B
TypeScript

export interface ServerData {
server: ServerObject
}
export interface ServerObject {
mods: Mod[],
url: string,
port: number,
status: Status
}
export interface Mod {
name: string,
href: string,
version: string
}
export interface Status {
data: Details,
online: string
error: any
}
export interface Details {
players: Players,
}
export interface Players {
online: number,
max: number,
sample: string[]
}