public void OnPlayerJoin(PlayerJoinEvent ev) { if (File.ReadAllLines(CustomAnnouncements.PlayerJoinFilePath).Length > 0) { if (CustomAnnouncements.DoesKeyExistInFile(CustomAnnouncements.PlayerJoinFilePath, ev.Player.SteamId)) { plugin.pluginManager.Server.Map.AnnounceCustomMessage(CustomAnnouncements.ReplaceVariables(CustomAnnouncements.SpacePeriods(CustomAnnouncements.GetValueOfKey(CustomAnnouncements.PlayerJoinFilePath, ev.Player.SteamId.ToString())))); plugin.Info("Running player join announcement for player: " + ev.Player.Name); } } }