List command implementation
This commit is contained in:
parent
557a926a68
commit
d074f8a5d6
|
@ -73,6 +73,14 @@ server.PacketHandler = (c, p) => {
|
||||||
|
|
||||||
return true;
|
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 => {
|
CommandHandler.RegisterCommand("flip", args => {
|
||||||
const string optionUsage = "Valid options: list, add <user id>, remove <user id>, set <true/false>, pov <both/self/others>";
|
const string optionUsage = "Valid options: list, add <user id>, remove <user id>, set <true/false>, pov <both/self/others>";
|
||||||
|
|
Loading…
Reference in New Issue