yes command yesyes

This commit is contained in:
rafi1212122
2023-05-30 19:58:15 +07:00
parent 88c69529fd
commit 62abc6a784
7 changed files with 142 additions and 32 deletions

View File

@@ -25,25 +25,7 @@ namespace PemukulPaku
Player Player = new(User.FromName("test"));
while (true)
{
string? line = Console.ReadLine();
if (!string.IsNullOrEmpty(line))
{
foreach (Command cmd in CommandFactory.Commands)
{
if (line.StartsWith(cmd.Name.ToLower()))
{
List<string> args = line.Split(' ').ToList();
args.RemoveAt(0);
cmd.Run(null, args.ToArray());
break;
}
}
}
}
ReadLine.GetInstance().Start();
}
}
}