diff --git a/ChatTwo/Ui/SeStringDebugger.cs b/ChatTwo/Ui/SeStringDebugger.cs index 06cc665..74664e7 100644 --- a/ChatTwo/Ui/SeStringDebugger.cs +++ b/ChatTwo/Ui/SeStringDebugger.cs @@ -22,12 +22,16 @@ public class SeStringDebugger : Window MaximumSize = new Vector2(float.MaxValue, float.MaxValue) }; + #if DEBUG Plugin.Commands.Register("/chat2Debugger").Execute += Toggle; + #endif } public void Dispose() { + #if DEBUG Plugin.Commands.Register("/chat2Debugger").Execute -= Toggle; + #endif } private void Toggle(string _, string __) => Toggle();