Fixing some silly mistakes.

This commit is contained in:
Lucas Nicodemus 2012-01-02 22:39:04 -07:00
parent be29a2cfcf
commit e8acdb0b96

View file

@ -87,7 +87,7 @@ namespace TShockAPI
{ {
if (parameters["cmd"] != null && parameters["cmd"].Trim() != "") if (parameters["cmd"] != null && parameters["cmd"].Trim() != "")
{ {
TSRESTPlayer tr = new TSRESTPlayer(); TSRestPlayer tr = new TSRestPlayer();
RestObject ro = new RestObject("200"); RestObject ro = new RestObject("200");
Commands.HandleCommand(tr, parameters["cmd"]); Commands.HandleCommand(tr, parameters["cmd"]);
foreach (string s in tr.GetCommandOutput()) foreach (string s in tr.GetCommandOutput())
@ -110,6 +110,7 @@ namespace TShockAPI
if (!nosave) if (!nosave)
WorldGen.saveWorld(); WorldGen.saveWorld();
Netplay.disconnect = true; Netplay.disconnect = true;
return new RestObject("200")["response"] = "Server is shutting down.";
} }
return new RestObject("200")["response"] = "The server will shut down only if the parameter 'confirm' is set to true in this REST call. You will not recieve a reply."; return new RestObject("200")["response"] = "The server will shut down only if the parameter 'confirm' is set to true in this REST call. You will not recieve a reply.";
} }