diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-12-26 11:22:45 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-12-26 11:22:45 -0500 |
commit | 48bb1581a6adeabfefbdd774011796e09a07aae2 (patch) | |
tree | 81fda584e9bad2d95218db9d7cc41146cc10f3ec /src/SMAPI/Framework/ModHelpers | |
parent | 71284e7176c55f66754470b19fd74b5b1fda4964 (diff) | |
parent | 5ac46b7ab22ad5d6ce558a6b6d6d020971c178bd (diff) | |
download | SMAPI-48bb1581a6adeabfefbdd774011796e09a07aae2.tar.gz SMAPI-48bb1581a6adeabfefbdd774011796e09a07aae2.tar.bz2 SMAPI-48bb1581a6adeabfefbdd774011796e09a07aae2.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/ModHelpers')
-rw-r--r-- | src/SMAPI/Framework/ModHelpers/CommandHelper.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/CommandHelper.cs b/src/SMAPI/Framework/ModHelpers/CommandHelper.cs index 600f867f..69382009 100644 --- a/src/SMAPI/Framework/ModHelpers/CommandHelper.cs +++ b/src/SMAPI/Framework/ModHelpers/CommandHelper.cs @@ -36,8 +36,16 @@ namespace StardewModdingAPI.Framework.ModHelpers } /// <inheritdoc /> + [Obsolete] public bool Trigger(string name, string[] arguments) { + SCore.DeprecationManager.Warn( + source: SCore.DeprecationManager.GetSourceName(this.ModID), + nounPhrase: $"{nameof(IModHelper)}.{nameof(IModHelper.ConsoleCommands)}.{nameof(ICommandHelper.Trigger)}", + version: "3.8.1", + severity: DeprecationLevel.Notice + ); + return this.CommandManager.Trigger(name, arguments); } } |