aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 3d1fe3b..08c2f2f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -276,7 +276,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
276 if (x > 255 || x < 0 || y > 255 || y < 0) 276 if (x > 255 || x < 0 || y > 255 || y < 0)
277 OSSLError("osTerrainSetHeight: Coordinate out of bounds"); 277 OSSLError("osTerrainSetHeight: Coordinate out of bounds");
278 278
279 if (World.ExternalChecks.ExternalChecksCanTerraformLand(m_host.OwnerID, new Vector3(x, y, 0))) 279 if (World.Permissions.CanTerraformLand(m_host.OwnerID, new Vector3(x, y, 0)))
280 { 280 {
281 World.Heightmap[x, y] = val; 281 World.Heightmap[x, y] = val;
282 return 1; 282 return 1;
@@ -309,7 +309,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
309 CheckThreatLevel(ThreatLevel.High, "osRegionRestart"); 309 CheckThreatLevel(ThreatLevel.High, "osRegionRestart");
310 310
311 m_host.AddScriptLPS(1); 311 m_host.AddScriptLPS(1);
312 if (World.ExternalChecks.ExternalChecksCanIssueEstateCommand(m_host.OwnerID, false)) 312 if (World.Permissions.CanIssueEstateCommand(m_host.OwnerID, false))
313 { 313 {
314 World.Restart((float)seconds); 314 World.Restart((float)seconds);
315 return 1; 315 return 1;
@@ -461,7 +461,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
461 461
462 m_host.AddScriptLPS(1); 462 m_host.AddScriptLPS(1);
463 463
464 if (World.ExternalChecks.ExternalChecksCanRunConsoleCommand(m_host.OwnerID)) 464 if (World.Permissions.CanRunConsoleCommand(m_host.OwnerID))
465 { 465 {
466 MainConsole.Instance.RunCommand(command); 466 MainConsole.Instance.RunCommand(command);
467 return true; 467 return true;
@@ -663,7 +663,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
663 m_host.AddScriptLPS(1); 663 m_host.AddScriptLPS(1);
664 //Check to make sure that the script's owner is the estate manager/master 664 //Check to make sure that the script's owner is the estate manager/master
665 //World.Permissions.GenericEstatePermission( 665 //World.Permissions.GenericEstatePermission(
666 if (World.ExternalChecks.ExternalChecksCanBeGodLike(m_host.OwnerID)) 666 if (World.Permissions.IsGod(m_host.OwnerID))
667 { 667 {
668 World.EventManager.TriggerRequestChangeWaterHeight((float)height); 668 World.EventManager.TriggerRequestChangeWaterHeight((float)height);
669 } 669 }