From a1a10e4b4a4419790acf073b0c0c301eb5065fb5 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Wed, 30 Nov 2022 11:53:26 +0100 Subject: [PATCH] Make /pal check command names --- Pal.Client/Plugin.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Pal.Client/Plugin.cs b/Pal.Client/Plugin.cs index 8052825..c95ab86 100644 --- a/Pal.Client/Plugin.cs +++ b/Pal.Client/Plugin.cs @@ -115,6 +115,7 @@ namespace Pal.Client try { + arguments = arguments.Trim(); switch (arguments) { case "stats": @@ -128,9 +129,13 @@ namespace Pal.Client break; #endif - default: + case "": Service.WindowSystem.GetWindow()?.Toggle(); break; + + default: + Service.Chat.PrintError($"[Palace Pal] Unknown sub-command '{arguments}' for '{command}'."); + break; } } catch (Exception e)