GameServerApi - object-oriented interface

GameServerApi

Hierarchy

  • BaseAPI
    • GameServerApi

Constructors

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: undefined | Configuration

Methods

  • Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS

    Parameters

    • gameServerId: string
    • playerId: string
    • OptionalbanPlayerInputDTO: BanPlayerInputDTO

      BanPlayerInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput, any>>

    Ban player

    GameServerApi

  • Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it's possible that the item is dropped on the ground instead of placed directly in the player's inventory. Required permissions: MANAGE_GAMESERVERS

    Parameters

    • gameServerId: string
    • playerId: string
    • OptionalgiveItemInputDTO: GiveItemInputDTO

      GiveItemInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Give item

    GameServerApi

  • Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS

    Parameters

    • gameServerId: string
    • playerId: string
    • OptionalkickPlayerInputDTO: KickPlayerInputDTO

      KickPlayerInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput, any>>

    Kick player

    GameServerApi

  • Shuts down the gameserver. This is a 'soft' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a 'restart' instead. Required permissions: MANAGE_GAMESERVERS

    Parameters

    • id: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Shutdown

    GameServerApi

  • Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS

    Parameters

    • gameServerId: string
    • playerId: string
    • OptionalteleportPlayerInputDTO: TeleportPlayerInputDTO

      TeleportPlayerInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput, any>>

    Teleport player

    GameServerApi

  • Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS

    Parameters

    • gameServerId: string
    • playerId: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput, any>>

    Unban player

    GameServerApi