diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index da18629..1a46837 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -646,6 +646,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
646 | } | 646 | } |
647 | } | 647 | } |
648 | 648 | ||
649 | MainConsole.Instance.Commands.AddCommand("region", false, "reload estate", | ||
650 | "reload estate", | ||
651 | "Reload the estate data", HandleReloadEstate); | ||
652 | |||
649 | //Bind Storage Manager functions to some land manager functions for this scene | 653 | //Bind Storage Manager functions to some land manager functions for this scene |
650 | EventManager.OnLandObjectAdded += | 654 | EventManager.OnLandObjectAdded += |
651 | new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject); | 655 | new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject); |
@@ -5121,5 +5125,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
5121 | sun); | 5125 | sun); |
5122 | } | 5126 | } |
5123 | } | 5127 | } |
5128 | |||
5129 | private void HandleReloadEstate(string module, string[] cmd) | ||
5130 | { | ||
5131 | if (MainConsole.Instance.ConsoleScene == null || | ||
5132 | (MainConsole.Instance.ConsoleScene is Scene && | ||
5133 | (Scene)MainConsole.Instance.ConsoleScene == this)) | ||
5134 | { | ||
5135 | ReloadEstateData(); | ||
5136 | } | ||
5137 | } | ||
5124 | } | 5138 | } |
5125 | } | 5139 | } |