aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 1cde8d2..20dc46e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4408,7 +4408,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4408 public void llEjectFromLand(string pest) 4408 public void llEjectFromLand(string pest)
4409 { 4409 {
4410 m_host.AddScriptLPS(1); 4410 m_host.AddScriptLPS(1);
4411 NotImplemented("llEjectFromLand"); 4411 UUID agentId = new UUID();
4412 if (UUID.TryParse(pest, out agentId))
4413 {
4414 ScenePresence presence = World.GetScenePresence(agentId);
4415 if (presence != null)
4416 {
4417 // agent must be over the owners land
4418 if (m_host.OwnerID == World.GetLandOwner(presence.AbsolutePosition.X, presence.AbsolutePosition.Y))
4419 World.TeleportClientHome(agentId, presence.ControllingClient);
4420 }
4421 }
4422 // ScriptSleep(5000);
4412 } 4423 }
4413 4424
4414 public LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers) 4425 public LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers)