diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs index 5079255359..6f501028a1 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs @@ -120,6 +120,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land client.OnParcelGodForceOwner += new ParcelGodForceOwner(handleParcelGodForceOwner); client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim); client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo); + client.OnParcelDwellRequest += new ParcelDwellRequest(handleParcelDwell); if (m_scene.Entities.ContainsKey(client.AgentId)) { SendLandUpdate((ScenePresence)m_scene.Entities[client.AgentId], true); @@ -1261,6 +1262,18 @@ namespace OpenSim.Region.Environment.Modules.World.Land #endregion + private void handleParcelDwell(int localID, IClientAPI remoteClient) + { + ILandObject selectedParcel = null; + lock (m_landList) + { + if (!m_landList.TryGetValue(localID, out selectedParcel)) + return; + } + + remoteClient.SendParcelDwellReply(localID, selectedParcel.landData.GlobalID, selectedParcel.landData.Dwell); + } + private void handleParcelInfo(IClientAPI remoteClient, UUID parcelID) { if (parcelID == UUID.Zero)