public void Update(IPlayer player, int oldValue, int newValue) { if (newValue == classChoiceLevel && oldValue < newValue) { StringBuilder sb = new StringBuilder("ATTENTION! You are high enough level "); sb.Append("to pick a class! You can choose your class by using !class "); sb.Append("[class name]. The choice of classes are: "); foreach (var cct in playerFactory.GetCharClassTypes()) { sb.AppendFormat("{0}, ", cct.Name); } sb.Remove(sb.Length - 2, 1); client.Whisper(player.Name, sb.ToString()); } }