Filtered commands for console that are InGameOnly.

This commit is contained in:
Lucca Faria Ferri 2023-02-13 08:43:50 -08:00
parent f72ff60965
commit 6907cebcc6

View File

@ -157,6 +157,7 @@ namespace DiIiS_NA.GameServer.CommandManager
? CommandGroups.Where(pair => pair.Key.MinUserLevel > invokerClient?.Account.UserLevel)
.Aggregate(output, (current, pair) => current + ($"{CommandsConfig.Instance.CommandPrefix}{pair.Key.Name}: {pair.Key.Help}\n\n"))
: CommandGroups
.Where(s=>!s.Key.InGameOnly)
.Aggregate(output, (current, pair) => current + (($"$[underline green]${CommandsConfig.Instance.CommandPrefix}{pair.Key.Name}$[/]$: {pair.Key.Help}\n\n")));
return output + "Type 'help <command>' to get help about a specific command.";