diff --git a/Harmony/BotCommandPatch.cs b/Harmony/BotCommandPatch.cs index 2637e1c..c9d2e47 100644 --- a/Harmony/BotCommandPatch.cs +++ b/Harmony/BotCommandPatch.cs @@ -1,6 +1,5 @@ using HarmonyLib; using System.Reflection; -using System.Collections.Generic; using System; public class BotCommandMod : IModApi @@ -14,11 +13,10 @@ public class BotCommandMod : IModApi } } -[HarmonyPatch(typeof(GameManager))] -[HarmonyPatch("ChatMessageServer")] +[HarmonyPatch(typeof(GameManager), "ChatMessage")] public class ChatMessagePatch { - static bool Prefix(ClientInfo _cInfo, EChatType _type, int _senderId, string _msg, string _mainName, bool _localizeMain, List _recipientEntityIds) + static bool Prefix(ClientInfo _cInfo, EChatType _type, string _msg, string _playerName) { if (_msg != null && _msg.StartsWith("/bot ")) {