mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-25 04:35:18 +00:00
List command implementation
This commit is contained in:
parent
557a926a68
commit
d074f8a5d6
1 changed files with 8 additions and 0 deletions
|
@ -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>";
|
||||
|
|
Loading…
Reference in a new issue