yes command yesyes

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

No files matched your search

+1 -19
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();
}
}
}