summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModHelpers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-12-26 11:20:47 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-12-26 11:20:47 -0500
commit5cc069476e1cb63c8fef2dd245a540b6b5130e68 (patch)
tree41153dddf012502b1638950c538817ead317dbe3 /src/SMAPI/Framework/ModHelpers
parent8895021696fd2129af6de775e275f3bd83edf034 (diff)
downloadSMAPI-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.cs8
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);
}
}