aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index f17e464..0ca5948 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -662,6 +662,10 @@ namespace OpenSim.Region.Framework.Scenes
662 } 662 }
663 } 663 }
664 664
665 MainConsole.Instance.Commands.AddCommand("region", false, "reload estate",
666 "reload estate",
667 "Reload the estate data", HandleReloadEstate);
668
665 //Bind Storage Manager functions to some land manager functions for this scene 669 //Bind Storage Manager functions to some land manager functions for this scene
666 EventManager.OnLandObjectAdded += 670 EventManager.OnLandObjectAdded +=
667 new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject); 671 new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject);
@@ -5155,5 +5159,15 @@ namespace OpenSim.Region.Framework.Scenes
5155 sun); 5159 sun);
5156 } 5160 }
5157 } 5161 }
5162
5163 private void HandleReloadEstate(string module, string[] cmd)
5164 {
5165 if (MainConsole.Instance.ConsoleScene == null ||
5166 (MainConsole.Instance.ConsoleScene is Scene &&
5167 (Scene)MainConsole.Instance.ConsoleScene == this))
5168 {
5169 ReloadEstateData();
5170 }
5171 }
5158 } 5172 }
5159} 5173}