aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2010-05-04 18:31:52 +0200
committerMelanie Thielker2010-05-04 18:31:52 +0200
commitce86d39c70882a4beb04a23565121b05a4325a46 (patch)
treed9bed1779e362b0934305d70bd36af911c04eec8 /OpenSim/Region
parentAllow reloading of estate settings into a running region. Move sun update (diff)
downloadopensim-SC-ce86d39c70882a4beb04a23565121b05a4325a46.zip
opensim-SC-ce86d39c70882a4beb04a23565121b05a4325a46.tar.gz
opensim-SC-ce86d39c70882a4beb04a23565121b05a4325a46.tar.bz2
opensim-SC-ce86d39c70882a4beb04a23565121b05a4325a46.tar.xz
Add "reload estate" command to sims
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}