Skip to content

Commit

Permalink
Merge pull request #3015 from Metratrj/fix/offnosave
Browse files Browse the repository at this point in the history
fix: off no save command
  • Loading branch information
hakusaro authored Jan 26, 2025
2 parents 92c3f00 + 9d96c02 commit 846ccb4
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 846ccb4

Please sign in to comment.