aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/World/Land
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Land')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
index 77a31c7..253eec6 100644
--- a/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Land/LandManagementModule.cs
@@ -103,6 +103,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
103 client.OnParcelAccessListRequest += new ParcelAccessListRequest(handleParcelAccessRequest); 103 client.OnParcelAccessListRequest += new ParcelAccessListRequest(handleParcelAccessRequest);
104 client.OnParcelAccessListUpdateRequest += new ParcelAccessListUpdateRequest(handleParcelAccessUpdateRequest); 104 client.OnParcelAccessListUpdateRequest += new ParcelAccessListUpdateRequest(handleParcelAccessUpdateRequest);
105 client.OnParcelAbandonRequest += new ParcelAbandonRequest(handleParcelAbandonRequest); 105 client.OnParcelAbandonRequest += new ParcelAbandonRequest(handleParcelAbandonRequest);
106 client.OnParcelGodForceOwner += new ParcelGodForceOwner(handleParcelGodForceOwner);
106 client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim); 107 client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim);
107 client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo); 108 client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo);
108 if (m_scene.Entities.ContainsKey(client.AgentId)) 109 if (m_scene.Entities.ContainsKey(client.AgentId))
@@ -912,6 +913,20 @@ namespace OpenSim.Region.Environment.Modules.World.Land
912 } 913 }
913 } 914 }
914 915
916 public void handleParcelGodForceOwner(int local_id, UUID ownerID, IClientAPI remote_client)
917 {
918 if (landList.ContainsKey(local_id))
919 {
920 if (m_scene.ExternalChecks.ExternalChecksCanBeGodLike(remote_client.AgentId))
921 {
922 landList[local_id].landData.OwnerID = ownerID;
923
924 m_scene.Broadcast(SendParcelOverlay);
925 landList[local_id].sendLandUpdateToClient(remote_client);
926 }
927 }
928 }
929
915 public void handleParcelAbandonRequest(int local_id, IClientAPI remote_client) 930 public void handleParcelAbandonRequest(int local_id, IClientAPI remote_client)
916 { 931 {
917 if (landList.ContainsKey(local_id)) 932 if (landList.ContainsKey(local_id))