2025-02-17 22:12:35 -05:00

28 lines
723 B
C#

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();
}
}
}
}