diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs index 14f66e8944..d4f8548cb6 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs @@ -2878,8 +2878,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler // public int osTerrainSetHeight(int x, int y, double val) { - World.Terrain.Set(x, y, val); - return 1; + if (World.PermissionsMngr.CanTerraform(m_host.OwnerID, new LLVector3(x, y, 0))) + { + World.Terrain.Set(x, y, val); + return 1; + } + else + { + return 0; + } } public double osTerrainGetHeight(int x, int y) @@ -2887,6 +2894,24 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler return World.Terrain.GetHeight(x, y); } + public int osRegionRestart(double seconds) + { + if (World.PermissionsMngr.CanRestartSim(m_host.OwnerID)) + { + World.Restart((float)ms); + return 1; + } + else + { + return 0; + } + } + + public void osRegionNotice(string msg) + { + World.SendGeneralAlert(msg); + } + public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer) {