diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index c350301..a7d4ecf 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -3676,6 +3676,16 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3676 | return LLUUID.Zero.ToString(); | 3676 | return LLUUID.Zero.ToString(); |
3677 | } | 3677 | } |
3678 | 3678 | ||
3679 | public int osConsoleCommand(string Command) | ||
3680 | { | ||
3681 | if (World.PermissionsMngr.IsAdministrator(m_host.OwnerID)) { | ||
3682 | OpenSim.Framework.Console.MainConsole.Instance.RunCommand(Command); | ||
3683 | return 1; | ||
3684 | } else { | ||
3685 | return 0; | ||
3686 | } | ||
3687 | } | ||
3688 | |||
3679 | private void NotImplemented(string Command) | 3689 | private void NotImplemented(string Command) |
3680 | { | 3690 | { |
3681 | m_host.AddScriptLPS(1); | 3691 | m_host.AddScriptLPS(1); |