diff options
author | Charles Krinke | 2008-02-17 21:15:43 +0000 |
---|---|---|
committer | Charles Krinke | 2008-02-17 21:15:43 +0000 |
commit | e6a74344e71941d0d09b1c0bc95501b3171f142d (patch) | |
tree | bc1fc28c6e593de16897e873559dd25aba1082c2 /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |
parent | * Last bit of cleanup now. As long as you keep physical prim off, you should... (diff) | |
download | opensim-SC-e6a74344e71941d0d09b1c0bc95501b3171f142d.zip opensim-SC-e6a74344e71941d0d09b1c0bc95501b3171f142d.tar.gz opensim-SC-e6a74344e71941d0d09b1c0bc95501b3171f142d.tar.bz2 opensim-SC-e6a74344e71941d0d09b1c0bc95501b3171f142d.tar.xz |
Thank you Hashbox for adding the
osConsoleCommand Feature to ll-functions.
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); |