Add "reload estate" command to sims

avinationmerge
Melanie Thielker 2010-05-04 18:31:52 +02:00
parent 4f93d30790
commit ce86d39c70
1 changed files with 14 additions and 0 deletions

View File

@ -662,6 +662,10 @@ namespace OpenSim.Region.Framework.Scenes
}
}
MainConsole.Instance.Commands.AddCommand("region", false, "reload estate",
"reload estate",
"Reload the estate data", HandleReloadEstate);
//Bind Storage Manager functions to some land manager functions for this scene
EventManager.OnLandObjectAdded +=
new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject);
@ -5155,5 +5159,15 @@ namespace OpenSim.Region.Framework.Scenes
sun);
}
}
private void HandleReloadEstate(string module, string[] cmd)
{
if (MainConsole.Instance.ConsoleScene == null ||
(MainConsole.Instance.ConsoleScene is Scene &&
(Scene)MainConsole.Instance.ConsoleScene == this))
{
ReloadEstateData();
}
}
}
}