aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index b2334be..ebf2a15 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -4507,7 +4507,18 @@ namespace OpenSim.Region.ScriptEngine.Common
4507 public void llEjectFromLand(string pest) 4507 public void llEjectFromLand(string pest)
4508 { 4508 {
4509 m_host.AddScriptLPS(1); 4509 m_host.AddScriptLPS(1);
4510 NotImplemented("llEjectFromLand"); 4510 UUID agentId = new UUID();
4511 if (UUID.TryParse(pest, out agentId))
4512 {
4513 ScenePresence presence = World.GetScenePresence(agentId);
4514 if (presence != null)
4515 {
4516 // agent must be over the owners land
4517 if (m_host.OwnerID == World.GetLandOwner(presence.AbsolutePosition.X, presence.AbsolutePosition.Y))
4518 World.TeleportClientHome(agentId, presence.ControllingClient);
4519 }
4520 }
4521 // ScriptSleep(5000);
4511 } 4522 }
4512 4523
4513 public LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers) 4524 public LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers)