Fixing some silly mistakes.
This commit is contained in:
parent
be29a2cfcf
commit
e8acdb0b96
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (parameters["cmd"] != null && parameters["cmd"].Trim() != "")
|
||||
{
|
||||
TSRESTPlayer tr = new TSRESTPlayer();
|
||||
TSRestPlayer tr = new TSRestPlayer();
|
||||
RestObject ro = new RestObject("200");
|
||||
Commands.HandleCommand(tr, parameters["cmd"]);
|
||||
foreach (string s in tr.GetCommandOutput())
|
||||
|
|
@ -110,6 +110,7 @@ namespace TShockAPI
|
|||
if (!nosave)
|
||||
WorldGen.saveWorld();
|
||||
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.";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue