private static CodPlayer CreatePlayer(string name, string id) { var player = new CodPlayer(name, id); ThreadPool.QueueUserWorkItem((e) => { Thread.Sleep(10000); Logging.WriteLog("Greeting player {0}", player.FullName); rcon.Say(String.Format(Strings.PersonalGreet, player.FullName, CodServerLogLine.RulesTrigger), player.Id); }); player.Greeted = true; return player; }
private static CodPlayer CreatePlayer(string name, string id) { var player = new CodPlayer(name, id); ThreadPool.QueueUserWorkItem((e) => { Thread.Sleep(10000); Logging.WriteLog("Greeting player {0}", player.FullName); rcon.Say(String.Format(Strings.PersonalGreet, player.FullName, CodServerLogLine.RulesTrigger), player.Id); }); player.Greeted = true; return(player); }