Exemplo n.º 1
0
 public static void AddPlayer(string sender, string channel)
 {
     if (isAcceptingPlayers)
     {
         if (!PlayerList.Contains(sender))
         {
             PlayerList.Add(sender);
             Program.client.SendMessage(Messages.JOINED(sender, PlayerList.Count), channel);
             Tools.SemiColoredWrite(ConsoleColor.Green, "[UNO] ", $"{sender} joined game.");
         }
         else
         {
             Program.client.SendMessage(Messages.ALREADY_JOINED(sender), channel);
         }
     }
     else
     {
         Program.client.SendMessage(Messages.ALREADY_DEALT(), channel);
     }
 }