Filtered commands for console that are InGameOnly.
This commit is contained in:
parent
f72ff60965
commit
6907cebcc6
@ -157,6 +157,7 @@ namespace DiIiS_NA.GameServer.CommandManager
|
|||||||
? CommandGroups.Where(pair => pair.Key.MinUserLevel > invokerClient?.Account.UserLevel)
|
? 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"))
|
.Aggregate(output, (current, pair) => current + ($"{CommandsConfig.Instance.CommandPrefix}{pair.Key.Name}: {pair.Key.Help}\n\n"))
|
||||||
: CommandGroups
|
: CommandGroups
|
||||||
|
.Where(s=>!s.Key.InGameOnly)
|
||||||
.Aggregate(output, (current, pair) => current + (($"$[underline green]${CommandsConfig.Instance.CommandPrefix}{pair.Key.Name}$[/]$: {pair.Key.Help}\n\n")));
|
.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.";
|
return output + "Type 'help <command>' to get help about a specific command.";
|
||||||
|
|||||||
Loading…
Reference in New Issue
user.block.title