0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-22 03:05:16 +00:00

List command implementation

This commit is contained in:
Sanae 2022-02-22 15:28:51 -06:00
parent 557a926a68
commit d074f8a5d6

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>";