aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/OpenSimConsole.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/OpenSimConsole.cs')
-rw-r--r--src/OpenSimConsole.cs31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/OpenSimConsole.cs b/src/OpenSimConsole.cs
index 80f36af..11bc648 100644
--- a/src/OpenSimConsole.cs
+++ b/src/OpenSimConsole.cs
@@ -145,12 +145,17 @@ namespace OpenSim
145 case "help": 145 case "help":
146 this.WriteLine("show users - show info about connected users"); 146 this.WriteLine("show users - show info about connected users");
147 this.WriteLine("shutdown - disconnect all clients and shutdown"); 147 this.WriteLine("shutdown - disconnect all clients and shutdown");
148 this.WriteLine("regenerate - regenerate the sim's terrain");
148 break; 149 break;
149 150
150 case "show": 151 case "show":
151 ShowCommands(cmdparams[0]); 152 ShowCommands(cmdparams[0]);
152 break; 153 break;
153 154
155 case "regenerate":
156 OpenSim_Main.local_world.RegenerateTerrain();
157 break;
158
154 case "shutdown": 159 case "shutdown":
155 OpenSim_Main.Shutdown(); 160 OpenSim_Main.Shutdown();
156 break; 161 break;
@@ -161,21 +166,21 @@ namespace OpenSim
161 // Shows data about something 166 // Shows data about something
162 public override void ShowCommands(string ShowWhat) { 167 public override void ShowCommands(string ShowWhat) {
163 switch(ShowWhat) { 168 switch(ShowWhat) {
164 case "uptime": 169 case "uptime":
165 this.WriteLine("OpenSim has been running since " + OpenSim_Main.sim.startuptime.ToString()); 170 this.WriteLine("OpenSim has been running since " + OpenSim_Main.sim.startuptime.ToString());
166 this.WriteLine("That is " + (DateTime.Now-OpenSim_Main.sim.startuptime).ToString()); 171 this.WriteLine("That is " + (DateTime.Now-OpenSim_Main.sim.startuptime).ToString());
167 break; 172 break;
168 case "users": 173 case "users":
169 OpenSim.world.Avatar TempAv; 174 OpenSim.world.Avatar TempAv;
170 this.WriteLine(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}","Firstname", "Lastname","Agent ID", "Session ID", "Circuit", "IP")); 175 this.WriteLine(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}","Firstname", "Lastname","Agent ID", "Session ID", "Circuit", "IP"));
171 foreach (libsecondlife.LLUUID UUID in OpenSim_Main.local_world.Entities.Keys) { 176 foreach (libsecondlife.LLUUID UUID in OpenSim_Main.local_world.Entities.Keys) {
172 if(OpenSim_Main.local_world.Entities[UUID].ToString()== "OpenSim.world.Avatar") 177 if(OpenSim_Main.local_world.Entities[UUID].ToString()== "OpenSim.world.Avatar")
173 { 178 {
174 TempAv=(OpenSim.world.Avatar)OpenSim_Main.local_world.Entities[UUID]; 179 TempAv=(OpenSim.world.Avatar)OpenSim_Main.local_world.Entities[UUID];
175 this.WriteLine(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}",TempAv.firstname, TempAv.lastname,UUID, TempAv.ControllingClient.SessionID, TempAv.ControllingClient.CircuitCode, TempAv.ControllingClient.userEP.ToString())); 180 this.WriteLine(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}",TempAv.firstname, TempAv.lastname,UUID, TempAv.ControllingClient.SessionID, TempAv.ControllingClient.CircuitCode, TempAv.ControllingClient.userEP.ToString()));
181 }
176 } 182 }
177 } 183 break;
178 break;
179 } 184 }
180 } 185 }
181 186