using Dalamud.Game.Command; namespace QuestShare.Common { internal static class Commands { public static void Initialize() { CommandManager.AddHandler("/questshare", new CommandInfo(OnCommand) { HelpMessage = "Open the Quest Share window." }); } public static void Dispose() { CommandManager.RemoveHandler("/questshare"); } private static void OnCommand(string command, string args) { Log.Information("Command received: {command} {args}"); if (command == "/questshare") { WindowManager.ToggleMainUI(); } } } }