Make /pal check command names
This commit is contained in:
parent
3c7b392475
commit
a1a10e4b4a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user