mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Thank you Hashbox for adding the
osConsoleCommand Feature to ll-functions.
This commit is contained in:
@@ -1865,6 +1865,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
m_LSL_Functions.osRegionNotice(msg);
|
||||
}
|
||||
|
||||
public int osConsoleCommand(string Command)
|
||||
{
|
||||
return m_LSL_Functions.osConsoleCommand(Command);
|
||||
}
|
||||
|
||||
public double llList2Float(LSL_Types.list src, int index)
|
||||
{
|
||||
return m_LSL_Functions.llList2Float(src, index);
|
||||
@@ -2203,4 +2208,4 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3676,6 +3676,16 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
return LLUUID.Zero.ToString();
|
||||
}
|
||||
|
||||
public int osConsoleCommand(string Command)
|
||||
{
|
||||
if (World.PermissionsMngr.IsAdministrator(m_host.OwnerID)) {
|
||||
OpenSim.Framework.Console.MainConsole.Instance.RunCommand(Command);
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
private void NotImplemented(string Command)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
@@ -641,5 +641,6 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
int osTerrainSetHeight(int x, int y, double val);
|
||||
int osRegionRestart(double seconds);
|
||||
void osRegionNotice(string msg);
|
||||
int osConsoleCommand(string Command);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user