aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs29
1 files changed, 27 insertions, 2 deletions
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 14f66e8..d4f8548 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
2878 // 2878 //
2879 public int osTerrainSetHeight(int x, int y, double val) 2879 public int osTerrainSetHeight(int x, int y, double val)
2880 { 2880 {
2881 World.Terrain.Set(x, y, val); 2881 if (World.PermissionsMngr.CanTerraform(m_host.OwnerID, new LLVector3(x, y, 0)))
2882 return 1; 2882 {
2883 World.Terrain.Set(x, y, val);
2884 return 1;
2885 }
2886 else
2887 {
2888 return 0;
2889 }
2883 } 2890 }
2884 2891
2885 public double osTerrainGetHeight(int x, int y) 2892 public double osTerrainGetHeight(int x, int y)
@@ -2887,6 +2894,24 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
2887 return World.Terrain.GetHeight(x, y); 2894 return World.Terrain.GetHeight(x, y);
2888 } 2895 }
2889 2896
2897 public int osRegionRestart(double seconds)
2898 {
2899 if (World.PermissionsMngr.CanRestartSim(m_host.OwnerID))
2900 {
2901 World.Restart((float)ms);
2902 return 1;
2903 }
2904 else
2905 {
2906 return 0;
2907 }
2908 }
2909
2910 public void osRegionNotice(string msg)
2911 {
2912 World.SendGeneralAlert(msg);
2913 }
2914
2890 public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, 2915 public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
2891 int timer) 2916 int timer)
2892 { 2917 {