0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-21 18:55:17 +00:00
This commit is contained in:
Sanae 2022-03-15 01:01:37 -06:00
parent 7039e760db
commit e917010e08

View file

@ -141,7 +141,7 @@ CommandHandler.RegisterCommand("tag", args => {
if (args.Length < 3)
return optionUsage;
switch (args[0]) {
case "time" when args.Length == 3: {
case "time" when args.Length == 4: {
if (args[1] != "*" && server.Clients.All(x => x.Name != args[1])) return $"Cannot find user {args[1]}";
Client? client = server.Clients.FirstOrDefault(x => x.Name == args[1]);
if (!ushort.TryParse(args[2], out ushort minutes)) return $"Invalid time for minutes {args[2]} (range: 0-65535)";