From d074f8a5d6959b2a464eed7acc83e19af3af307d Mon Sep 17 00:00:00 2001 From: Sanae Date: Tue, 22 Feb 2022 15:28:51 -0600 Subject: [PATCH] List command implementation --- Server/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Server/Program.cs b/Server/Program.cs index cd947a5..980493a 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -73,6 +73,14 @@ server.PacketHandler = (c, p) => { return true; }; +// +// CommandHandler.RegisterCommand("scenario", args => { +// const string optionUsage = "Valid options: split <" +// if (args.Length < 1) +// return +// }); + +CommandHandler.RegisterCommand("list", _ => $"List: {string.Join(", ", server.Clients.Select(x => $"{x.Name} ({x.Id})"))}"); CommandHandler.RegisterCommand("flip", args => { const string optionUsage = "Valid options: list, add , remove , set , pov ";