Skip to content

Commit

Permalink
ToPrettyString in end game rule completions (#16374)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrorcult authored May 13, 2023
1 parent 32ccf45 commit a0b2f9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Server/GameTicking/GameTicker.GameRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ private void EndGameRuleCommand(IConsoleShell shell, string argstr, string[] arg

private CompletionResult EndGameRuleCompletions(IConsoleShell shell, string[] args)
{
return CompletionResult.FromHintOptions(GetAddedGameRules().Select(u => u.ToString()), "<added rule>");
var opts = GetAddedGameRules().Select(ent => new CompletionOption(ent.ToString(), ToPrettyString(ent))).ToList();
return CompletionResult.FromHintOptions(opts, "<added rule>");
}

[AdminCommand(AdminFlags.Fun)]
Expand Down

0 comments on commit a0b2f9d

Please sign in to comment.