summaryrefslogtreecommitdiff
path: root/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetSpeedCommand.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-30 17:09:29 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-30 17:09:29 -0400
commit599f5851928c82dba118e1d302da731a4ed4f91d (patch)
tree6dea4776d6a872d845cb15a52785542127639b00 /src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetSpeedCommand.cs
parent8b9d1baaea415dfb3d845e990898c29c024c5c18 (diff)
downloadSMAPI-599f5851928c82dba118e1d302da731a4ed4f91d.tar.gz
SMAPI-599f5851928c82dba118e1d302da731a4ed4f91d.tar.bz2
SMAPI-599f5851928c82dba118e1d302da731a4ed4f91d.zip
remove player_setlevel and player_setspeed commands (#415)
Diffstat (limited to 'src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetSpeedCommand.cs')
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetSpeedCommand.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetSpeedCommand.cs b/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetSpeedCommand.cs
deleted file mode 100644
index e9693540..00000000
--- a/src/SMAPI.Mods.ConsoleCommands/Framework/Commands/Player/SetSpeedCommand.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using StardewValley;
-
-namespace StardewModdingAPI.Mods.ConsoleCommands.Framework.Commands.Player
-{
- /// <summary>A command which edits the player's current added speed.</summary>
- internal class SetSpeedCommand : TrainerCommand
- {
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- public SetSpeedCommand()
- : base("player_setspeed", "Sets the player's added speed to the specified value.\n\nUsage: player_setspeed <value>\n- value: an integer amount (0 is normal).") { }
-
- /// <summary>Handle the command.</summary>
- /// <param name="monitor">Writes messages to the console and log file.</param>
- /// <param name="command">The command name.</param>
- /// <param name="args">The command arguments.</param>
- public override void Handle(IMonitor monitor, string command, ArgumentParser args)
- {
- // parse arguments
- if (!args.TryGetInt(0, "added speed", out int amount, min: 0))
- return;
-
- // handle
- Game1.player.addedSpeed = amount;
- monitor.Log($"OK, your added speed is now {Game1.player.addedSpeed}.", LogLevel.Info);
- }
- }
-}