interface IGameServer {
    connectionInfo: unknown;
    banPlayer(options: BanDTO): Promise<void>;
    executeConsoleCommand(rawCommand: string): Promise<CommandOutput>;
    getEventEmitter(): TakaroEmitter;
    getMapInfo(): Promise<MapInfoDTO>;
    getMapTile(x: number, y: number, z: number): Promise<Buffer>;
    getPlayer(player: IPlayerReferenceDTO): Promise<null | IGamePlayer>;
    getPlayerInventory(player: IPlayerReferenceDTO): Promise<IItemDTO[]>;
    getPlayerLocation(player: IPlayerReferenceDTO): Promise<null | IPosition>;
    getPlayers(): Promise<IGamePlayer[]>;
    giveItem(
        player: IPlayerReferenceDTO,
        item: string,
        amount: number,
        quality?: string,
    ): Promise<void>;
    kickPlayer(player: IPlayerReferenceDTO, reason: string): Promise<void>;
    listBans(): Promise<BanDTO[]>;
    listItems(): Promise<IItemDTO[]>;
    sendMessage(message: string, opts: IMessageOptsDTO): Promise<void>;
    shutdown(): Promise<void>;
    teleportPlayer(
        player: IPlayerReferenceDTO,
        x: number,
        y: number,
        z: number,
    ): Promise<void>;
    testReachability(): Promise<TestReachabilityOutputDTO>;
    unbanPlayer(player: IPlayerReferenceDTO): Promise<void>;
}

Implemented by

Properties

connectionInfo: unknown

Methods