From 1f2cb000a277e983e5177524f1d8200fa4e71c6c Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Sat, 2 May 2026 03:08:25 +0200 Subject: [PATCH] Rename slash commands from /chat2 to /hellion family Hellion Chat is an independent fork with its own assembly name and plugin slot, but it kept registering the upstream /chat2* slash commands. That mixed naming caused two friction points: users could not tell from the in-game help which plugin owned the command, and running both Hellion Chat and the upstream Chat 2 side by side would collide on the registration. Five commands change: /chat2 -> /hellion (settings + chat toggle) /chat2Viewer -> /hellionView (database viewer) /chat2Debugger -> /hellionDebugger (internal, not shown in help) /chat2SeString -> /hellionSeString (internal, debug-only) /clearlog2 -> /clearhellion (clear chat log) Help strings ("Perform various actions with Chat 2.", "Clear the Chat 2 chat log") are reworded to match. ImGui internal window IDs (###chat2-settings, ###chat2-dbviewer) are left untouched on purpose so existing user layouts for those windows do not snap back to default. Resource files do not reference any of these command names, so no localisation work needed. --- ChatTwo/Ui/ChatLogWindow.cs | 8 ++++---- ChatTwo/Ui/DbViewer.cs | 4 ++-- ChatTwo/Ui/Debugger.cs | 4 ++-- ChatTwo/Ui/SeStringDebugger.cs | 4 ++-- ChatTwo/Ui/Settings.cs | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index 71e1037..018085c 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -99,8 +99,8 @@ public sealed class ChatLogWindow : Window SetUpTextCommandChannels(); SetUpAllCommands(); - Plugin.Commands.Register("/clearlog2", "Clear the Chat 2 chat log").Execute += ClearLog; - Plugin.Commands.Register("/chat2").Execute += ToggleChat; + Plugin.Commands.Register("/clearhellion", "Clear the Hellion Chat log").Execute += ClearLog; + Plugin.Commands.Register("/hellion").Execute += ToggleChat; Plugin.ClientState.Login += Login; Plugin.ClientState.Logout += Logout; @@ -115,8 +115,8 @@ public sealed class ChatLogWindow : Window Plugin.AddonLifecycle.UnregisterListener(AddonEvent.PostUpdate, "ActionDetail", PayloadHandler.MoveTooltip); Plugin.ClientState.Logout -= Logout; Plugin.ClientState.Login -= Login; - Plugin.Commands.Register("/chat2").Execute -= ToggleChat; - Plugin.Commands.Register("/clearlog2").Execute -= ClearLog; + Plugin.Commands.Register("/hellion").Execute -= ToggleChat; + Plugin.Commands.Register("/clearhellion").Execute -= ClearLog; } private void Logout(int _, int __) diff --git a/ChatTwo/Ui/DbViewer.cs b/ChatTwo/Ui/DbViewer.cs index 2304a66..4a8e512 100644 --- a/ChatTwo/Ui/DbViewer.cs +++ b/ChatTwo/Ui/DbViewer.cs @@ -76,12 +76,12 @@ public class DbViewer : Window RespectCloseHotkey = false; DisableWindowSounds = true; - Plugin.Commands.Register("/chat2Viewer", "Get access to your message history, with simple filter options.", true).Execute += Toggle; + Plugin.Commands.Register("/hellionView", "Get access to your message history, with simple filter options.", true).Execute += Toggle; } public void Dispose() { - Plugin.Commands.Register("/chat2Viewer", "Get access to your message history, with simple filter options.", true).Execute -= Toggle; + Plugin.Commands.Register("/hellionView", "Get access to your message history, with simple filter options.", true).Execute -= Toggle; } private void Toggle(string _, string __) => Toggle(); diff --git a/ChatTwo/Ui/Debugger.cs b/ChatTwo/Ui/Debugger.cs index d3e93f2..fdbb68e 100644 --- a/ChatTwo/Ui/Debugger.cs +++ b/ChatTwo/Ui/Debugger.cs @@ -28,12 +28,12 @@ public class DebuggerWindow : Window RespectCloseHotkey = false; DisableWindowSounds = true; - Plugin.Commands.Register("/chat2Debugger", showInHelp: false).Execute += Toggle; + Plugin.Commands.Register("/hellionDebugger", showInHelp: false).Execute += Toggle; } public void Dispose() { - Plugin.Commands.Register("/chat2Debugger", showInHelp: false).Execute -= Toggle; + Plugin.Commands.Register("/hellionDebugger", showInHelp: false).Execute -= Toggle; } private void Toggle(string _, string __) => Toggle(); diff --git a/ChatTwo/Ui/SeStringDebugger.cs b/ChatTwo/Ui/SeStringDebugger.cs index 167b3b9..a4d7465 100644 --- a/ChatTwo/Ui/SeStringDebugger.cs +++ b/ChatTwo/Ui/SeStringDebugger.cs @@ -30,14 +30,14 @@ public class SeStringDebugger : Window DisableWindowSounds = true; #if DEBUG - Plugin.Commands.Register("/chat2SeString", showInHelp: false).Execute += Toggle; + Plugin.Commands.Register("/hellionSeString", showInHelp: false).Execute += Toggle; #endif } public void Dispose() { #if DEBUG - Plugin.Commands.Register("/chat2SeString", showInHelp: false).Execute -= Toggle; + Plugin.Commands.Register("/hellionSeString", showInHelp: false).Execute -= Toggle; #endif } diff --git a/ChatTwo/Ui/Settings.cs b/ChatTwo/Ui/Settings.cs index c4fa8bc..b35e545 100755 --- a/ChatTwo/Ui/Settings.cs +++ b/ChatTwo/Ui/Settings.cs @@ -52,14 +52,14 @@ public sealed class SettingsWindow : Window Initialise(); - Plugin.Commands.Register("/chat2", "Perform various actions with Chat 2.").Execute += Command; + Plugin.Commands.Register("/hellion", "Perform various actions with Hellion Chat.").Execute += Command; Plugin.Interface.UiBuilder.OpenConfigUi += Toggle; } public void Dispose() { Plugin.Interface.UiBuilder.OpenConfigUi -= Toggle; - Plugin.Commands.Register("/chat2").Execute -= Command; + Plugin.Commands.Register("/hellion").Execute -= Command; } private void Command(string command, string args)