List command implementation

This commit is contained in:
Sanae 2022-02-22 15:28:51 -06:00
parent 557a926a68
commit d074f8a5d6
1 changed files with 8 additions and 0 deletions

View File

@ -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 <user id>, remove <user id>, set <true/false>, pov <both/self/others>";