Skip to content

Add standalone server chat command "help" and "?"#931

Merged
notfood merged 1 commit into
rwmt:devfrom
MhaWay:standalone-server-command-help
May 20, 2026
Merged

Add standalone server chat command "help" and "?"#931
notfood merged 1 commit into
rwmt:devfrom
MhaWay:standalone-server-command-help

Conversation

@MhaWay
Copy link
Copy Markdown
Contributor

@MhaWay MhaWay commented May 19, 2026

Summary

  • add help and ? chat commands for standalone server command discovery
  • show command descriptions and usage text, including help details
  • improve invalid command feedback to point users to built-in help

Testing

  • dotnet build .\Source\Server\Server.csproj -c Release

Copilot AI review requested due to automatic review settings May 19, 2026 22:30
@MhaWay
Copy link
Copy Markdown
Contributor Author

MhaWay commented May 19, 2026

1.6, enhancement, standalone server

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds built-in chat command discovery for server commands, including aliases and detailed help output.

Changes:

  • Registers help and ? chat commands during server initialization.
  • Adds command metadata for descriptions and usage.
  • Improves invalid-command feedback to point users toward help.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
Source/Common/MultiplayerServer.cs Registers the new help command and ? alias.
Source/Common/ChatCommands.cs Adds command metadata, help listing/detail behavior, and updated invalid command messages.
Comments suppressed due to low confidence (2)

Source/Common/ChatCommands.cs:123

  • This hint is also shown to in-game players, but player chat commands must be entered with a leading / before the server strips it. For a ServerPlayer, this should point to /help rather than help; otherwise the suggested follow-up is sent as normal chat and does not run the command.
            source.SendMsg($"Unknown command '{args[0]}'. Use help to list available commands.");

Source/Common/ChatCommands.cs:137

  • This usage hint is sent through the same help command to both console and in-game chat sources. In-game players need to type /help <command>, not help <command>, so please render the usage with the chat prefix when source is ServerPlayer and keep the bare form for console input.
        source.SendMsg("Use help <command> for detailed usage.");

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

else
{
source.SendMsg("Invalid command");
source.SendMsg("Invalid command. Use help or ? to list available commands.");
@mibac138 mibac138 added enhancement New feature or request. 1.6 Fixes or bugs relating to 1.6 (Not Odyssey). standalone server Fix or bugs relating to the standalone server. labels May 19, 2026
@notfood notfood moved this to In review in 1.6 and Odyssey May 20, 2026
@notfood notfood merged commit f03a2ce into rwmt:dev May 20, 2026
4 of 5 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in 1.6 and Odyssey May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6 Fixes or bugs relating to 1.6 (Not Odyssey). enhancement New feature or request. standalone server Fix or bugs relating to the standalone server.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants