diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-12-26 11:20:47 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-12-26 11:20:47 -0500 |
commit | 5cc069476e1cb63c8fef2dd245a540b6b5130e68 (patch) | |
tree | 41153dddf012502b1638950c538817ead317dbe3 /src/SMAPI/Framework/ModHelpers | |
parent | 8895021696fd2129af6de775e275f3bd83edf034 (diff) | |
download | SMAPI-5cc069476e1cb63c8fef2dd245a540b6b5130e68.tar.gz SMAPI-5cc069476e1cb63c8fef2dd245a540b6b5130e68.tar.bz2 SMAPI-5cc069476e1cb63c8fef2dd245a540b6b5130e68.zip |
deprecate ConsoleCommands.Trigger method
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); } } |