fix: off no save command
Added seting SaveOnSeverExit befor shutting down the server Fixes #2938
This commit is contained in:
parent
5d585bb891
commit
aa526223a6
1 changed files with 1 additions and 0 deletions
|
|
@ -2044,6 +2044,7 @@ namespace TShockAPI
|
|||
private static void OffNoSave(CommandArgs args)
|
||||
{
|
||||
string reason = ((args.Parameters.Count > 0) ? GetString("Server shutting down: ") + String.Join(" ", args.Parameters) : GetString("Server shutting down."));
|
||||
Netplay.SaveOnServerExit = false;
|
||||
TShock.Utils.StopServer(false, reason);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue