#if SMAPI_1_x using StardewModdingAPI; using StardewValley; namespace TrainerMod.Framework.Commands.Saves { /// A command which saves the game. internal class SaveCommand : TrainerCommand { /********* ** Public methods *********/ /// Construct an instance. public SaveCommand() : base("save", "Saves the game? Doesn't seem to work.") { } /// Handle the command. /// Writes messages to the console and log file. /// The command name. /// The command arguments. public override void Handle(IMonitor monitor, string command, ArgumentParser args) { monitor.Log("Saving the game...", LogLevel.Info); SaveGame.Save(); } } } #endif