Make /pal check command names

This commit is contained in:
Liza 2022-11-30 11:53:26 +01:00
parent 3c7b392475
commit a1a10e4b4a

View File

@ -115,6 +115,7 @@ namespace Pal.Client
try try
{ {
arguments = arguments.Trim();
switch (arguments) switch (arguments)
{ {
case "stats": case "stats":
@ -128,9 +129,13 @@ namespace Pal.Client
break; break;
#endif #endif
default: case "":
Service.WindowSystem.GetWindow<ConfigWindow>()?.Toggle(); Service.WindowSystem.GetWindow<ConfigWindow>()?.Toggle();
break; break;
default:
Service.Chat.PrintError($"[Palace Pal] Unknown sub-command '{arguments}' for '{command}'.");
break;
} }
} }
catch (Exception e) catch (Exception e)