diff --git a/Harmony/BotCommandPatch.cs b/Harmony/BotCommandPatch.cs index fb029ec..2637e1c 100644 --- a/Harmony/BotCommandPatch.cs +++ b/Harmony/BotCommandPatch.cs @@ -1,24 +1,16 @@ using HarmonyLib; using System.Reflection; using System.Collections.Generic; +using System; public class BotCommandMod : IModApi { public void InitMod(Mod _modInstance) { - Log.Out("[BotCommandMod] Loading"); + Console.WriteLine("[BotCommandMod] Loading"); var harmony = new Harmony("com.botcommand.mod"); harmony.PatchAll(Assembly.GetExecutingAssembly()); - Log.Out("[BotCommandMod] Loaded"); - } -} - -[HarmonyPatch(typeof(ConsoleCmdAbstract))] -[HarmonyPatch("getCommands")] -public class ChatInterceptPatch -{ - static void Postfix(ref string __result) - { + Console.WriteLine("[BotCommandMod] Loaded"); } } @@ -31,7 +23,7 @@ public class ChatMessagePatch if (_msg != null && _msg.StartsWith("/bot ")) { string playerName = _cInfo != null ? _cInfo.playerName : "Server"; - Log.Out($"[Bot] {playerName}: {_msg}"); + Console.WriteLine($"[Bot] {playerName}: {_msg}"); return false; } return true;