Make /pal check command names

rendering
Liza 2022-11-30 11:53:26 +01:00
parent 3c7b392475
commit a1a10e4b4a
1 changed files with 6 additions and 1 deletions

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)