diff --git a/Dalamud/Interface/Internal/DalamudCommands.cs b/Dalamud/Interface/Internal/DalamudCommands.cs index 7855f9c54..52279df74 100644 --- a/Dalamud/Interface/Internal/DalamudCommands.cs +++ b/Dalamud/Interface/Internal/DalamudCommands.cs @@ -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.Get().Print("Unloading..."); Service.Get().Unload(); } + + private void OnKillCommand(string command, string arguments) + { + Process.GetCurrentProcess().Kill(); + } private void OnHelpCommand(string command, string arguments) {