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