21 lines
504 B
C#
21 lines
504 B
C#
|
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;
|
||
|
}
|
||
|
}
|