OpenSim.Region.ScriptEngine.Shared.Api.OSSL_Api.osRegionRestart C# (CSharp) Method

osRegionRestart() public method

public osRegionRestart ( double seconds ) : int
seconds double
return int
        public int osRegionRestart(double seconds)
        {
            // This is High here because region restart is not reliable
            // it may result in the region staying down or becoming
            // unstable. This should be changed to Low or VeryLow once
            // The underlying functionality is fixed, since the security
            // as such is sound
            //
            CheckThreatLevel(ThreatLevel.High, "osRegionRestart");

            IRestartModule restartModule = World.RequestModuleInterface<IRestartModule>();
            m_host.AddScriptLPS(1);
            if (World.Permissions.CanIssueEstateCommand(m_host.OwnerID, false) && (restartModule != null))
            {
                if (seconds < 15)
                {
                    restartModule.AbortRestart("Region restart has been aborted\n");
                    return 1;
                }

                RegionRestart(seconds, String.Empty);
                return 1;
            }
            else
            {
                return 0;
            }
        }

Same methods

OSSL_Api::osRegionRestart ( double seconds, string msg ) : int
OSSL_Api