From 1ef96f9537131aa5df55900ecbc39b69bc210935 Mon Sep 17 00:00:00 2001
From: AkjaHAsLk1IALk0MasH <46046453+AgaSpace@users.noreply.github.com>
Date: Thu, 15 Jun 2023 13:01:52 +0700
Subject: [PATCH] Marked the `PlayerCommand` hook as obsolete.
---
TShockAPI/Hooks/PlayerHooks.cs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/TShockAPI/Hooks/PlayerHooks.cs b/TShockAPI/Hooks/PlayerHooks.cs
index e6b68581..15cac88d 100644
--- a/TShockAPI/Hooks/PlayerHooks.cs
+++ b/TShockAPI/Hooks/PlayerHooks.cs
@@ -16,6 +16,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using TShockAPI.DB;
@@ -388,6 +389,7 @@ namespace TShockAPI.Hooks
///
/// Fired by players when using a command.
///
+ [Obsolete("There is an alternative to PlayerHooks.PrePlayerCommand")]
public static event PlayerCommandD PlayerCommand;
///