ServerPack: ServerUsageLines, a server's own /rserver usage lines

An optional hook, collected once in the constructor. ServerPackCommands.Usage
appends a server's lines (trimmed, blanks dropped) after the shared two, and
"/rserver help" and an unknown word print them all. A server without the hook
prints exactly the two lines it always has (pinned on Coldeve).
ServerProjectsTests.PluginsDir is internal so other tests can share it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-11-07 15:46:37 -08:00
commit 8ceba81070
4 changed files with 49 additions and 9 deletions

View file

@ -35,7 +35,7 @@ internal static class ServerProjectsTests
"levistras",
};
private static string PluginsDir()
internal static string PluginsDir()
{
string? dir = AppContext.BaseDirectory;
while (dir != null && !Directory.Exists(Path.Combine(dir, "Plugins", "Shared", "ServerPack")))