mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Thank you Hashbox for adding the
osConsoleCommand Feature to ll-functions.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user