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

osConsoleCommand() public method

public osConsoleCommand ( string command ) : bool
command string
return bool
        public bool osConsoleCommand(string command)
        {
            CheckThreatLevel(ThreatLevel.Severe, "osConsoleCommand");

            m_host.AddScriptLPS(1);

            // For safety, we add another permission check here, and don't rely only on the standard OSSL permissions
            if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID))
            {
                MainConsole.Instance.RunCommand(command);
                return true;
            }

            return false;
        }
OSSL_Api