evrima-rcon - v0.1.1
    Preparing search index...

    Class EvrimaRCON

    Client for the Evrima RCON protocol.

    Index
    DEFAULT_PORT: 8888

    Default RCON port.

    DEFAULT_TIMEOUT: 500

    Default reply timeout in milliseconds.

    PERMANENT_BAN: 0

    Ban duration in seconds that bans permanently.

    • Sends an announcement message to all online players.

      Parameters

      • message: string

        Message text; max 998 characters.

      Returns Promise<void>

      Error if not connected.

    • Bans a player.

      Parameters

      • name: string

        Name of the player.

      • steamId: string

        SteamID64 of the player.

      • reason: string

        Reason; must not contain ,.

      • duration: number | null = EvrimaRCON.PERMANENT_BAN

        Duration in seconds; 0, null and Infinity ban permanently.

      Returns Promise<boolean>

      whether the player was online and got kicked; the ban applies either way.

      RangeError if the duration is not a non-negative integer, Infinity or null.

      Error if not connected.

    • Closes the connection to the server.

      Returns void

    • Kicks a player.

      Parameters

      • steamId: string

        SteamID64 of the player.

      • reason: string

        Reason; must not contain ,.

      Returns Promise<boolean>

      whether the player was online and got kicked.

      Error if not connected.