public void llEjectFromLand(string pest)
{
m_host.AddScriptLPS(1);
UUID agentID = new UUID();
if (UUID.TryParse(pest, out agentID))
{
ScenePresence presence = World.GetScenePresence(agentID);
if (presence != null)
{
// agent must be over the owners land
ILandObject land = World.LandChannel.GetLandObject(presence.AbsolutePosition);
if (land == null)
return;
if (m_host.OwnerID == land.LandData.OwnerID)
{
Vector3 p = World.GetNearestAllowedPosition(presence, land);
presence.TeleportWithMomentum(p, null);
presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
}
}
}
ScriptSleep(m_sleepMsOnEjectFromLand);
}