/**
  * Returns a struct containing the server options
  * @param bool $multicall
  * @return Structures\ServerOptions
  */
 function getServerOptions($multicall = false)
 {
     if ($multicall) {
         return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('ServerOptions'));
     }
     return Structures\ServerOptions::fromArray($this->execute(ucfirst(__FUNCTION__)));
 }
Example #2
0
 /**
  * Returns a struct containing the server options:
  * Name, Comment, Password, PasswordForSpectator, CurrentMaxPlayers, NextMaxPlayers, CurrentMaxSpectators,
  * NextMaxSpectators, KeepPlayerSlots, IsP2PUpload, IsP2PDownload, CurrentLadderMode, NextLadderMode,
  * CurrentVehicleNetQuality, NextVehicleNetQuality, CurrentCallVoteTimeOut, NextCallVoteTimeOut, CallVoteRatio,
  * AllowMapDownload, AutoSaveReplays, RefereePassword, RefereeMode, AutoSaveValidationReplays, HideServer,
  * CurrentUseChangingValidationSeed, NextUseChangingValidationSeed, ClientInputsMaxLatency.
  * @return Structures\ServerOptions
  * @throws InvalidArgumentException
  */
 function getServerOptions()
 {
     return Structures\ServerOptions::fromArray($this->execute(ucfirst(__FUNCTION__)));
 }