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;
|
|
|
|
}
|
2024-07-28 04:40:02 +00:00
|
|
|
}
|