Function GameServerApiFactory

GameServerApi - factory interface

  • Parameters

    • Optionalconfiguration: Configuration
    • OptionalbasePath: string
    • Optionalaxios: AxiosInstance

    Returns {
        gameServerControllerBanPlayer(gameServerId: string, playerId: string, banPlayerInputDTO?: BanPlayerInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput>;
        gameServerControllerCreate(gameServerCreateDTO?: GameServerCreateDTO, options?: RawAxiosRequestConfig): AxiosPromise<GameServerOutputDTOAPI>;
        gameServerControllerExecuteCommand(id: string, commandExecuteInputDTO?: CommandExecuteInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<CommandExecuteDTOAPI>;
        gameServerControllerGetImport(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ImportOutputDTOAPI>;
        gameServerControllerGetInstalledModules(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ModuleInstallationOutputArrayDTOAPI>;
        gameServerControllerGetModuleInstallation(gameServerId: string, moduleId: string, options?: RawAxiosRequestConfig): AxiosPromise<ModuleInstallationOutputDTOAPI>;
        gameServerControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<GameServerOutputDTOAPI>;
        gameServerControllerGetPlayers(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PlayerOnGameserverOutputDTOAPI>;
        gameServerControllerGetTypes(options?: RawAxiosRequestConfig): AxiosPromise<GameServerTypesOutputDTOAPI>;
        gameServerControllerGiveItem(gameServerId: string, playerId: string, giveItemInputDTO?: GiveItemInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        gameServerControllerImportFromCSMM(options?: RawAxiosRequestConfig): AxiosPromise<ImportOutputDTOAPI>;
        gameServerControllerInstallModule(gameServerId: string, moduleId: string, moduleInstallDTO?: ModuleInstallDTO, options?: RawAxiosRequestConfig): AxiosPromise<ModuleInstallationOutputDTOAPI>;
        gameServerControllerKickPlayer(gameServerId: string, playerId: string, kickPlayerInputDTO?: KickPlayerInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput>;
        gameServerControllerListBans(id: string, options?: RawAxiosRequestConfig): AxiosPromise<BanPlayerOutputDTO>;
        gameServerControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput>;
        gameServerControllerSearch(gameServerSearchInputDTO?: GameServerSearchInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<GameServerOutputArrayDTOAPI>;
        gameServerControllerSendMessage(id: string, messageSendInputDTO?: MessageSendInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput>;
        gameServerControllerShutdown(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        gameServerControllerTeleportPlayer(gameServerId: string, playerId: string, teleportPlayerInputDTO?: TeleportPlayerInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput>;
        gameServerControllerTestReachability(gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, options?: RawAxiosRequestConfig): AxiosPromise<GameServerTestReachabilityDTOAPI>;
        gameServerControllerTestReachabilityForId(id: string, options?: RawAxiosRequestConfig): AxiosPromise<GameServerTestReachabilityDTOAPI>;
        gameServerControllerUnbanPlayer(gameServerId: string, playerId: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput>;
        gameServerControllerUninstallModule(gameServerId: string, moduleId: string, options?: RawAxiosRequestConfig): AxiosPromise<ModuleInstallationOutputDTOAPI>;
        gameServerControllerUpdate(id: string, gameServerUpdateDTO?: GameServerUpdateDTO, options?: RawAxiosRequestConfig): AxiosPromise<GameServerOutputDTOAPI>;
    }

    • gameServerControllerBanPlayer:function
      • 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 AxiosPromise<APIOutput>

        Ban player

    • gameServerControllerCreate:function
    • gameServerControllerExecuteCommand:function
    • gameServerControllerGetImport:function
    • gameServerControllerGetInstalledModules:function
    • gameServerControllerGetModuleInstallation:function
    • gameServerControllerGetOne:function
    • gameServerControllerGetPlayers:function
    • gameServerControllerGetTypes:function
    • gameServerControllerGiveItem:function
      • 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 AxiosPromise<void>

        Give item

    • gameServerControllerImportFromCSMM:function
    • gameServerControllerInstallModule:function
    • gameServerControllerKickPlayer:function
      • 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 AxiosPromise<APIOutput>

        Kick player

    • gameServerControllerListBans:function
    • gameServerControllerRemove:function
    • gameServerControllerSearch:function
    • gameServerControllerSendMessage:function
      • Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: MANAGE_GAMESERVERS

        Parameters

        • id: string
        • OptionalmessageSendInputDTO: MessageSendInputDTO

          MessageSendInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<APIOutput>

        Send message

    • gameServerControllerShutdown:function
      • 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 AxiosPromise<void>

        Shutdown

    • gameServerControllerTeleportPlayer:function
      • 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 AxiosPromise<APIOutput>

        Teleport player

    • gameServerControllerTestReachability:function
    • gameServerControllerTestReachabilityForId:function
    • gameServerControllerUnbanPlayer:function
      • 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 AxiosPromise<APIOutput>

        Unban player

    • gameServerControllerUninstallModule:function
    • gameServerControllerUpdate:function