add descriptive explanations for region restart functionality

bulletsim
Justin Clark-Casey (justincc) 2011-05-06 01:06:28 +01:00
parent 8755a48cde
commit fd44540c02
2 changed files with 13 additions and 7 deletions

View File

@ -64,19 +64,26 @@ namespace OpenSim.Region.CoreModules.World.Region
public void AddRegion(Scene scene) public void AddRegion(Scene scene)
{ {
m_Scene = scene; m_Scene = scene;
scene.RegisterModuleInterface<IRestartModule>(this); scene.RegisterModuleInterface<IRestartModule>(this);
MainConsole.Instance.Commands.AddCommand("RestartModule", MainConsole.Instance.Commands.AddCommand("RestartModule",
false, "region restart bluebox", false, "region restart bluebox",
"region restart bluebox <message> <time> ...", "region restart bluebox <message> <delta seconds>+",
"Restart the region", HandleRegionRestart); "Schedule a region restart",
"Schedule a region restart after a given number of seconds. If one delta is given then the region is restarted in delta seconds time. A time to restart is sent to users in the region as a transient notice. If multiple deltas are given then a notice is sent when we reach each delta.",
HandleRegionRestart);
MainConsole.Instance.Commands.AddCommand("RestartModule", MainConsole.Instance.Commands.AddCommand("RestartModule",
false, "region restart notice", false, "region restart notice",
"region restart notice <message> <time> ...", "region restart notice <message> <delta seconds>+",
"Restart the region", HandleRegionRestart); "Schedule a region restart",
"Schedule a region restart after a given number of seconds. If one delta is given then the region is restarted in delta seconds time. A time to restart is sent to users in the region as a dismissable bluebox notice. If multiple deltas are given then a notice is sent when we reach each delta.",
HandleRegionRestart);
MainConsole.Instance.Commands.AddCommand("RestartModule", MainConsole.Instance.Commands.AddCommand("RestartModule",
false, "region restart abort", false, "region restart abort",
"region restart abort [<message>]", "region restart abort [<message>]",
"Restart the region", HandleRegionRestart); "Abort a region restart", HandleRegionRestart);
} }
public void RegionLoaded(Scene scene) public void RegionLoaded(Scene scene)
@ -245,7 +252,7 @@ namespace OpenSim.Region.CoreModules.World.Region
} }
} }
MainConsole.Instance.Output("Error: restart region <mode> <name> <time> ..."); MainConsole.Instance.Output("Error: restart region <mode> <name> <delta seconds>+");
return; return;
} }

View File

@ -111,7 +111,6 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
"Go on/off emergency monitoring mode", "Go on/off emergency monitoring mode",
"Go on/off emergency monitoring mode", "Go on/off emergency monitoring mode",
EmergencyMonitoring); EmergencyMonitoring);
} }
public void RemoveRegion(Scene scene) public void RemoveRegion(Scene scene)