aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World
diff options
context:
space:
mode:
authorMelanie2010-11-25 03:27:35 +0000
committerMelanie2010-11-25 03:27:35 +0000
commit6c3eb21440a323b8669326767cfc55beda2ff35c (patch)
tree84de5d5908ee2b5858a380e96b79188629267cd1 /OpenSim/Region/CoreModules/World
parentFinish the RestartModule and fix some bugs. Add new console commands: (diff)
parentChange all restarting to use the restart module. Remove hardcoded behavior (diff)
downloadopensim-SC-6c3eb21440a323b8669326767cfc55beda2ff35c.zip
opensim-SC-6c3eb21440a323b8669326767cfc55beda2ff35c.tar.gz
opensim-SC-6c3eb21440a323b8669326767cfc55beda2ff35c.tar.bz2
opensim-SC-6c3eb21440a323b8669326767cfc55beda2ff35c.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r--OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
index 14de4f4..75cf0c6 100644
--- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
@@ -233,7 +233,23 @@ namespace OpenSim.Region.CoreModules.World.Estate
233 233
234 private void handleEstateRestartSimRequest(IClientAPI remoteClient, int timeInSeconds) 234 private void handleEstateRestartSimRequest(IClientAPI remoteClient, int timeInSeconds)
235 { 235 {
236 m_scene.Restart(timeInSeconds); 236 IRestartModule restartModule = m_scene.RequestModuleInterface<IRestartModule>();
237 if (restartModule != null)
238 {
239 List<int> times = new List<int>();
240 while (timeInSeconds > 0)
241 {
242 times.Add(timeInSeconds);
243 if (timeInSeconds > 300)
244 timeInSeconds -= 120;
245 else if (timeInSeconds > 30)
246 timeInSeconds -= 30;
247 else
248 timeInSeconds -= 15;
249 }
250
251 restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), true);
252 }
237 } 253 }
238 254
239 private void handleChangeEstateCovenantRequest(IClientAPI remoteClient, UUID estateCovenantID) 255 private void handleChangeEstateCovenantRequest(IClientAPI remoteClient, UUID estateCovenantID)