/// <summary> /// Adds user dynamically to running game - for security reasons add his script /// </summary> public void AddUser(string name, string scriptPassword) { if (IsRunning) { talker.SendText(string.Format("/adduser {0} {1}", name, scriptPassword)); } }
/// <summary> /// Adds user dynamically to running game - for security reasons add his script /// </summary> public void AddUser(string name, string scriptPassword, User user) { if (IsRunning) { talker.SendText($"/adduser {name} {scriptPassword}"); if (user != null) { talker.SendText($"SPRINGIE:User {new MidGameJoinUser(user)}"); } } }