mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: add /xlkill
This commit is contained in:
parent
e3977f9493
commit
d02b9606c3
1 changed files with 11 additions and 0 deletions
|
|
@ -29,6 +29,12 @@ internal class DalamudCommands : IServiceType
|
|||
HelpMessage = Loc.Localize("DalamudUnloadHelp", "Unloads XIVLauncher in-game addon."),
|
||||
ShowInHelp = false,
|
||||
});
|
||||
|
||||
commandManager.AddHandler("/xlkill", new CommandInfo(this.OnKillCommand)
|
||||
{
|
||||
HelpMessage = "Kill the game.",
|
||||
ShowInHelp = false,
|
||||
});
|
||||
|
||||
commandManager.AddHandler("/xlhelp", new CommandInfo(this.OnHelpCommand)
|
||||
{
|
||||
|
|
@ -141,6 +147,11 @@ internal class DalamudCommands : IServiceType
|
|||
Service<ChatGui>.Get().Print("Unloading...");
|
||||
Service<Dalamud>.Get().Unload();
|
||||
}
|
||||
|
||||
private void OnKillCommand(string command, string arguments)
|
||||
{
|
||||
Process.GetCurrentProcess().Kill();
|
||||
}
|
||||
|
||||
private void OnHelpCommand(string command, string arguments)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue