PartyDamage/Commands.cs

21 lines
504 B
C#
Raw Normal View History

2024-07-25 06:50:32 +00:00
using Dalamud.Game.Command;
namespace PartyDamage;
public class Commands : IDisposable {
private Plugin Plugin { get; }
public Commands(Plugin plugin) {
this.Plugin = plugin;
this.Plugin.CommandManager.AddHandler("/partydamage", new CommandInfo(this.OnCommand));
}
public void Dispose() {
this.Plugin.CommandManager.RemoveHandler("/partydamage");
}
private void OnCommand(string command, string args) {
this.Plugin.Ui.Visible ^= true;
}
}