summaryrefslogtreecommitdiff
path: root/src/SMAPI/ICommandHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/ICommandHelper.cs')
-rw-r--r--src/SMAPI/ICommandHelper.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/ICommandHelper.cs b/src/SMAPI/ICommandHelper.cs
index 9f1c345c..c92a09c2 100644
--- a/src/SMAPI/ICommandHelper.cs
+++ b/src/SMAPI/ICommandHelper.cs
@@ -17,11 +17,13 @@ namespace StardewModdingAPI
/// <exception cref="ArgumentException">There's already a command with that name.</exception>
ICommandHelper Add(string name, string documentation, Action<string, string[]> callback);
+#if SMAPI_DEPRECATED
/// <summary>Trigger a command.</summary>
/// <param name="name">The command name.</param>
/// <param name="arguments">The command arguments.</param>
/// <returns>Returns whether a matching command was triggered.</returns>
[Obsolete("Use mod-provided APIs to integrate with mods instead. This method will be removed in SMAPI 4.0.0.")]
bool Trigger(string name, string[] arguments);
+#endif
}
}