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
    OperationId: GameServerControllerBanPlayer

    Parameters

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

      BanPlayerInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput>>

    GameServerApi

  • Get map metadata for Leaflet
    OperationId: GameServerControllerGetMapInfo

    Parameters

    • id: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void>>

    GameServerApi

  • Get a map tile for Leaflet
    OperationId: GameServerControllerGetMapTile

    Parameters

    • id: string
    • x: string
    • y: string
    • z: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void>>

    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
    OperationId: GameServerControllerGiveItem

    Parameters

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

      GiveItemInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void>>

    GameServerApi

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

    Parameters

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

      KickPlayerInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput>>

    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
    OperationId: GameServerControllerShutdown

    Parameters

    • id: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void>>

    GameServerApi

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

    Parameters

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

      TeleportPlayerInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput>>

    GameServerApi

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

    Parameters

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

      Override http request option.

    Returns Promise<AxiosResponse<APIOutput>>

    GameServerApi