UNPKG

@arbytez/cod4-rcon-commands

Version:

A simple wrapper library to the rcon commands you can send to a cod4 server. Response data for commands '_status_', '_rconStatus_' and '_info_' is parsed into custom type object, so it is possible to easily manage the server status/info.

7 lines (6 loc) 791 B
import { ServerStatus, ServerInfo, ServerRconStatus } from './types'; export declare const executeRconCommand: (cod4ServerIp: string, cod4ServerPort: number, cod4ServerRcon: string, command: string, maxTimeOut?: number) => Promise<string>; export declare const executeCommand: (cod4ServerIp: string, cod4ServerPort: number, command: string, maxTimeOut?: number) => Promise<string>; export declare const rconStatus: (cod4ServerIp: string, cod4ServerPort: number, cod4ServerRcon: string, maxTimeOut?: number) => Promise<ServerRconStatus>; export declare const getInfo: (cod4ServerIp: string, cod4ServerPort: number, maxTimeOut?: number) => Promise<ServerInfo>; export declare const getStatus: (cod4ServerIp: string, cod4ServerPort: number, maxTimeOut?: number) => Promise<ServerStatus>;