Skip to content

Commit

Permalink
fix: off no save command
Browse files Browse the repository at this point in the history
Added seting SaveOnSeverExit befor shutting down the server
Fixes Pryaxis#2938
  • Loading branch information
Metratrj committed Jan 30, 2024
1 parent 5d585bb commit aa52622
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TShockAPI/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2044,6 +2044,7 @@ private static void Off(CommandArgs args)
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);
}

Expand Down

0 comments on commit aa52622

Please sign in to comment.