Disable the automatic mesages when a player connects/disconnects from the server.
Only available to Admin.
@param bool $disable
@param bool $multicall
@return bool
@throws InvalidArgumentException
509947
function disableServiceAnnounces($disable = true, $multicall = false)
    {
        if (!is_bool($disable)) {
            throw new InvalidArgumentException('disable = ' . print_r($disable, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($disable), $multicall);
    }
972023
function setMaxPlayers($maxPlayers, $multicall = false)
    {
        if (!is_int($maxPlayers)) {
            throw new InvalidArgumentException('maxPlayers = ' . print_r($maxPlayers, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($maxPlayers), $multicall);
    }
1109119
function getForcedSkins($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('ForcedSkin', true));
        }
        return Structures\ForcedSkin::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__)));
    }
1367105
function setServerPassword($password, $multicall = false)
    {
        if (!is_string($password)) {
            throw new InvalidArgumentException('password = ' . print_r($password, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($password), $multicall);
    }
51687
public function execute($methodName, $params = array(), $multicall = false)
    {
        if ($multicall) {
            $this->xmlrpcClient->addCall($methodName, $params);
            $this->multicallHandlers[] = $multicall;
        } else {
            return $this->xmlrpcClient->query($methodName, $params);
        }
    }
1053898
function getModeScriptInfo($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('ScriptInfo'));
        }
        return Structures\ScriptInfo::fromArray($this->execute(ucfirst(__FUNCTION__)));
    }
923787
function getCurrentGameInfo($multicall = false)
    {
        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('GameInfos'));
        }
        return Structures\GameInfos::fromArray($this->execute(ucfirst(__FUNCTION__)));
    }
381052
function getDetailedPlayerInfo($player, $multicall = false)
    {
        $login = $this->getLogin($player);
        if ($login === false) {
            throw new InvalidArgumentException('player = ' . print_r($player, true));
        }

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($login), $this->structHandler('PlayerDetailedInfo'));
        }
        return Structures\PlayerDetailedInfo::fromArray($this->execute(ucfirst(__FUNCTION__), array($login)));
    }
1151824
public function disableViewCheck(bool $disable = true)
    {
        if ($disable) {
            array_delete($this->checkboxes, 'view');
        } elseif (!in_array('view', $this->checkboxes)) {
            array_push($this->checkboxes, 'view');
        }

        return $this;
    }
1023862
public function setDisableFunction($callback)
    {
        if (!is_callable($callback, true)) {
            throw new InvalidArgumentException('TreeDropdownField->setDisableFunction(): not passed a valid callback');
        }

        $this->disableCallback = $callback;
        return $this;
    }
1314605
function setHideServer($visibility, $multicall = false)
    {
        if (!is_int($visibility) || $visibility < 0 || $visibility > 2) {
            throw new InvalidArgumentException('visibility = ' . print_r($visibility, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($visibility), $multicall);
    }
638150
function setNextMapIdent($ident, $multicall = false)
    {
        if (!is_string($ident)) {
            throw new InvalidArgumentException('ident = ' . print_r($ident, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($ident), $multicall);
    }
638020
public function disableRefreshButton(bool $disable = true)
    {
        $this->tools = $this->tools->map(function (AbstractTool $tool) use ($disable) {
            if ($tool instanceof RefreshButton) {
                return $tool->disable($disable);
            }

            return $tool;
        });
    }
941773
protected function call($command, $multiline = false)
    {
        if (!$this->send($command)) {
            return false;
        }

        return $this->receive($multiline);
    }
201920
function setModeScriptSettings($settings, $multicall = false)
    {
        if (!is_array($settings) || !$settings) {
            throw new InvalidArgumentException('settings = ' . print_r($settings, true));
        }

        return $this->execute(ucfirst(__FUNCTION__), array($settings), $multicall);
    }
760940
public function removeConnection($name)
    {
        if (!$this->hasConnection($name)) {
            throw new \InvalidArgumentException(sprintf('The connection "%s" does not exists.', $name));
        }

        unset($this->connections[$name]);
    }
366470
function sendToServerAfterMatchEnd($link, $multicall = false)
    {
        if (!is_string($link)) {
            throw new InvalidArgumentException('link = ' . print_r($link, true));
        }

        $link = str_replace("maniaplanet://", "", $link);

        return $this->execute(ucfirst(__FUNCTION__), array($link), $multicall);
    }